Skip to content
violet · cool

#b02aec

a balanced, electric violet · cool · closest name: Dark Orchid

Token name suggestion: True Thistle

RGB
176, 42, 236
HSL
281°, 84%, 55%
CMYK
25, 82, 0, 8
Luminance
0.1694

#b02aec is a balanced electric violet, 281° on the wheel and 60/100 on the cool side. Put white text on it (4.79:1). As text it scores 4.79:1 on white — safe at any size. Nearest name is Dark Orchid, nearest Tailwind family is purple.

hsl(281 84% 55%)rgb(176 42 236)Base step 500AA inkCool

At a glance

Every number on this page in one read: what #b02aec is made of, how bright it looks, and which way it leans.

Hex
#b02aec
Hue
281°
violet
Saturation
84%
electric
Lightness
55%
balanced
Brightness
93%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1694
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.79:1
Closest name
Dark Orchid
ΔE2000 5.5
Chroma
104.9
LCH, 0–130ish
OKLCH L
0.589
perceptual lightness
Tailwind
purple
500 · ΔE 6.9
Web-safe
#9933FF
nearest of 216
Where it sits
Hue281° of 360°
Saturation84%
Lightness55%
Saturation × lightness field

Left edge is grey, right edge is full chroma; top is white, bottom is black. The dot is #b02aec.

Temperature
Warm ← → Cool60% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Luminance by channel
Red54%
Green10%
Blue36%

Green carries most of what the eye calls brightness — that is why WCAG weights it 0.7152.

Every format

HEX#b02aec
HEX (8-digit)#b02aecff
RGBrgb(176, 42, 236)
RGBArgba(176, 42, 236, 1)
HSLhsl(281, 84%, 55%)
HSV / HSBhsv(281, 82%, 93%)
HWBhwb(281 16% 7%)
CMYKcmyk(25%, 82%, 0%, 8%)
LABlab(48.2 77.8 -70.4)
LCHlch(48.2 104.9 317.9)
OKLCHoklch(0.589 0.268 311.9)
XYZ (D65)xyz(33.87, 16.94, 80.83)
Decimal11545324
Display P3color(display-p3 0.690 0.165 0.925)
Web-safe#9933FF

Copy-ready code

every platformclick to select
/* CSS */
color: #b02aec;
background-color: #b02aec;
/* CSS custom property */
--brand: #b02aec;
/* Tailwind (arbitrary) */
class="text-[#b02aec] bg-[#b02aec]"
/* SCSS */
$brand: #b02aec;
/* SwiftUI */
Color(red: 0.690, green: 0.165, blue: 0.925)
/* UIKit */
UIColor(red: 0.690, green: 0.165, blue: 0.925, alpha: 1)
/* Android XML */
<color name="brand">#B02AEC</color>
/* Android Compose */
Color(0xFFB02AEC)
/* Flutter */
Color(0xFFB02AEC)
/* Python / OpenCV (BGR) */
(236, 42, 176)
/* Python / PIL (RGB) */
(176, 42, 236)
/* Java AWT */
new Color(176, 42, 236)
/* .NET */
Color.FromArgb(255, 176, 42, 236)
/* OpenGL / Unity (0–1) */
(0.6902f, 0.1647f, 0.9255f, 1f)
/* LaTeX */
\definecolor{brand}{RGB}{176,42,236}
modern cssclick to select
/* mix without leaving CSS */
background: color-mix(in oklab, #b02aec 85%, white);
border-color: color-mix(in oklab, #b02aec 40%, transparent);
/* theme-aware in one line */
color: light-dark(#540A75, #E6D3EE);
/* relative colour syntax */
--hover: hsl(from #b02aec h s calc(l - 7));

Design tokens

The same ramp in the four formats a team actually needs. Paste one and the whole palette lands with it.

css custom propertiesclick to select
:root {
  --brand-50: #F9F2FC;
  --brand-100: #F4E6FA;
  --brand-200: #E7C5F6;
  --brand-300: #D998F6;
  --brand-400: #C665F1;
  --brand-500: #b02aec;
  --brand-600: #A114E1;
  --brand-700: #8611BB;
  --brand-800: #6C0D96;
  --brand-900: #4F0E6C;
  --brand-950: #310944;
  --brand: #b02aec;
  --brand-ink: #ffffff;
  --brand-surface: #F9F4FA;
  --brand-border: #DFC0ED;
  --brand-hover: #A014DE;
  --brand-pressed: #8811BE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-surface: #1F1424;
    --brand-ink: #E6D3EE;
  }
}
tailwind.config.jsclick to select
theme: {
  extend: {
    colors: {
      brand: {
        50: '#F9F2FC',
        100: '#F4E6FA',
        200: '#E7C5F6',
        300: '#D998F6',
        400: '#C665F1',
        500: '#b02aec',
        600: '#A114E1',
        700: '#8611BB',
        800: '#6C0D96',
        900: '#4F0E6C',
        950: '#310944',
        DEFAULT: '#b02aec',
      },
    },
  },
}
scss mapclick to select
$brand: (
  '50': #F9F2FC,
  '100': #F4E6FA,
  '200': #E7C5F6,
  '300': #D998F6,
  '400': #C665F1,
  '500': #b02aec,
  '600': #A114E1,
  '700': #8611BB,
  '800': #6C0D96,
  '900': #4F0E6C,
  '950': #310944,
);
$brand-base: #b02aec;
$brand-ink: #ffffff;

@function brand($step) { @return map-get($brand, $step); }
w3c design tokens (json)click to select
{
  "color": {
    "brand": {
      "50": { "$value": "#F9F2FC", "$type": "color" },
      "100": { "$value": "#F4E6FA", "$type": "color" },
      "200": { "$value": "#E7C5F6", "$type": "color" },
      "300": { "$value": "#D998F6", "$type": "color" },
      "400": { "$value": "#C665F1", "$type": "color" },
      "500": { "$value": "#b02aec", "$type": "color" },
      "600": { "$value": "#A114E1", "$type": "color" },
      "700": { "$value": "#8611BB", "$type": "color" },
      "800": { "$value": "#6C0D96", "$type": "color" },
      "900": { "$value": "#4F0E6C", "$type": "color" },
      "950": { "$value": "#310944", "$type": "color" }
    },
    "brandInk": { "$value": "#ffffff", "$type": "color" }
  }
}

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #b02aec · 4.79:1
Use #ffffffAA at every size, AAA for large text only.
Aa
12px
Aa
16px
Aa
24px
Aa
White text · 4.79:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.39:1
AA fail · AA large pass · AAA fail
Reading the other direction: #b02aec as text scores 4.79:1 on white and 4.39:1 on black.
Best tinted ink on it, if plain black or white feels flat: #F6E8FD at 4.07:1.

Make it accessible

A contrast checker tells you that you failed. This tells you what to ship instead — same hue, same saturation, lightness moved only as far as WCAG demands.

The quick fox
#b02aec · 4.79:1
AA on whitealready passes
#b02aec
The quick fox
#8B11C2 · 7.10:1
AAA on white−13% L
#8B11C2
The quick fox
#B22FEC · 4.51:1
AA on black+1% L
#B22FEC
The quick fox
#CA70F2 · 7.11:1
AAA on black+15% L
#CA70F2

Large text — 24px regular or 18.66px bold and above — only needs 3:1, so #B02AEC is enough for headings on white. Non-text elements such as icons, chart strokes and focus rings also sit at 3:1 under WCAG 2.2 (1.4.11).

Accessibility — WCAG contrast

Aa
#b02aec on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#b02aec on black: 4.39:1
AA ✗ fail · AA-large · AAA
Against the neutral ladder

Contrast is symmetric, so each row covers both directions: #b02aec as text on that neutral, and that neutral as text on #b02aec.

NeutralRatioBoth directions
White4.79:1AaAa
Slate 504.57:1AaAa
Slate 1004.37:1AaAa
Slate 2003.88:1AaAa
Slate 3003.22:1AaAa
Slate 4001.87:1AaAa
Slate 5001.01:1AaAa
Slate 6001.58:1AaAa
Slate 7002.16:1AaAa
Slate 8003.06:1AaAa
Slate 9003.73:1AaAa
Black4.39:1AaAa
Colour vision deficiency
true color
protanopia · #006CF1
deuteranopia · #0075E8
tritanopia · #A85E8F

Roughly one man in twelve has some form of colour vision deficiency. If any of the three panels above is hard to tell apart from a neighbouring colour in your palette, add a shape, an icon or a label so the meaning does not rest on hue alone.

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b02aec is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F2FC
#F4E6FA
#E7C5F6
#D998F6
#C665F1
#b02aec
#A114E1
#8611BB
#6C0D96
#4F0E6C
#310944
Base = 500Lightest = 50 · #F9F2FCDarkest = 950 · #310944Text step on white = 500
Perceptual ramp — OKLCH

The same eleven steps expressed in OKLCH, where equal lightness numbers actually look equally spaced. HSL ramps go muddy in the yellows and washed out in the blues; this one does not. Modern browsers render it natively — the hex ramp above is the fallback.

50100200300400500600700800900950
oklch tokensclick to select
:root {
  --brand-50: oklch(0.97 0.067 311.9);
  --brand-100: oklch(0.94 0.107 311.9);
  --brand-200: oklch(0.88 0.161 311.9);
  --brand-300: oklch(0.80 0.209 311.9);
  --brand-400: oklch(0.72 0.247 311.9);
  --brand-500: oklch(0.64 0.268 311.9);
  --brand-600: oklch(0.56 0.268 311.9);
  --brand-700: oklch(0.48 0.252 311.9);
  --brand-800: oklch(0.40 0.225 311.9);
  --brand-900: oklch(0.32 0.188 311.9);
  --brand-950: oklch(0.24 0.148 311.9);
}

Colors that work with #b02aec

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#70C00C
Second voice, not a rival
Dark variant#540A75
Hover, pressed, headers
Light variant#F6E8FD
Selected rows, tints
Dark surface#1F1424
Dark-mode background
Hover#A014DE
One step down in lightness
Pressed#8811BE
Two steps down
Disabled#C8B6D0
Chroma pulled out
Focus ring#BB32F8
Offset from the fill so it reads
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

In real components

The same eight roles, wired into the interface patterns you will actually build with them. Every state below is a computed value, not a mock-up.

Buttons and states
Save changesHoverPressedDisabled
OutlineSubtleLinkFocused
Form field
you@company.com

Focus ring uses the light variant so the field still reads as one shape.

Send me product updates
Notice
Your export is ready

The file stays available for seven days. Download it before it expires.

NewBetaDraft
Data
Storage used68%
Acme LtdActive
NorthwindTrial
GlobexActive

How to use #b02aec

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
  • Chart series and data categories
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate
Minimum size as text on white
Any size
Safe as a fill behind white type
Yes
Safe as a 1px border on white
Yes

Meaning and mood

What a colour in this family tends to signal, and how this particular chroma and lightness change the reading.

creativepremiummodernimaginative

Violet sits between the warmth of red and the calm of blue, so it reads as inventive without reading as risky. Current shorthand for software craft.

At this chroma the association is amplified — it will dominate anything placed beside it, so give it space and use it sparingly. The mid lightness keeps it versatile in both themes.

Worth knowing

Deep violets swallow detail on screens with poor gamma; check it on a cheap laptop panel.

Reads as
  • FormalityLow
  • EnergyHigh
  • Weight46/100
  • TemperatureCool
  • ApproachabilityBalanced

Colour associations are cultural and vary by market. Treat these as a starting point for a conversation with your audience, not a finding about them.

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#66EC2A
Analogous left#4F2AEC
Analogous right#EC2AC7
Split-complement 1#C7EC2A
Split-complement 2#2AEC4F
Triadic 1#ECB02A
Triadic 2#2AECB0
Tetradic#EC4F2A
On the wheel
Base+30°−30°+120°+240°+180°281°

#b02aec sits at 281°. Every dot is a harmony position and links to its own page in the table alongside.

RGB percentages

Red69.0%
Green16.5%
Blue92.5%
R · 0–255
176
0xb0
G · 0–255
42
0x2a
B · 0–255
236
0xec

CMYK percentages

Cyan25.4%
Magenta82.2%
Yellow0.0%
Key (black)7.5%

Total ink coverage is 115%. Most commercial presses cap around 300% — above that, sheets stop drying properly.

Color previews

#b02aec text on a black background

contrast 4.39:1

Card sample

#b02aec text on a white background

contrast 4.79:1

Card sample

#b02aec on grey

4.37:1

#b02aec on its own surface

4.41:1

#b02aec on its dark surface

3.71:1

CSS3 live lab

Text font color

The quick brown fox

color: #b02aec;
Background color
Panel with #b02aec background
background-color: #b02aec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #b02aec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(176, 42, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(176, 42, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b02aec;
background: linear-gradient(135deg, #b02aec, #EC2AA7);
Gradient text

Gradient headline

background: linear-gradient(90deg, #b02aec, #EC2A76);
-webkit-background-clip: text;
color: transparent;
Focus ring
Focused control
outline: 2px solid #b02aec;
outline-offset: 3px;
Underline & caret

Marked up text

text-decoration-color: #b02aec;
caret-color: #b02aec;
Left rule
Pull quote or callout
border-left: 4px solid #b02aec;
Ring + tint
Selected chip
background: #F6E8FD;
box-shadow: inset 0 0 0 2px #b02aec;
Conic badge
68%
background: conic-gradient(#b02aec 68%, #e2e8f0 0);

Transparency

What each alpha value actually composites to. The top row is #b02aec over white; the bottom row is the same alpha over a checkerboard, so you can see what survives on a photo or a video.

Bottom row of hexes is the flattened result over white — use those when a design tool refuses transparency, or when you need a solid fallback.

alpha in every syntaxclick to select
rgba(176, 42, 236, 0.5)
rgb(176 42 236 / 50%)
#b02aec80
hsl(281 84% 55% / 50%)
color-mix(in srgb, #b02aec 50%, transparent)
Alpha8-digit hexFlat on white
10%#b02aec1a#F7EAFD
20%#b02aec33#EFD4FB
40%#b02aec66#DFAAF7
60%#b02aec99#D07FF4
80%#b02aeccc#C055F0

Gradients from #b02aec

Six recipes, each built from this hex and shown with the exact CSS that produced it.

Elevation
Same hue, three lightnesses — safe anywhere
background: linear-gradient(135deg, #C562F1, #b02aec 45%, #540A75);
Duotone
A short hue run reads richer than a flat fill
background: linear-gradient(120deg, #b02aec, #E31488);
Complement sweep
Loud — keep it behind large type only
background: linear-gradient(90deg, #b02aec, #66EC2A);
Spotlight
Hero panels and app headers
background: radial-gradient(120% 120% at 20% 0%, #CF7EF3 0%, #b02aec 45%, #540A75 100%);
Soft wash
Section backgrounds that stay readable
background: linear-gradient(180deg, #F9F4FA, #ffffff);
Mesh
Ambient background, no image weight
background: radial-gradient(60% 60% at 15% 20%, #6959F0 0%, transparent 60%), radial-gradient(55% 55% at 85% 15%, #EE46C0 0%, transparent 60%), radial-gradient(70% 70% at 50% 95%, #540A75 0%, transparent 65%), #b02aec;

Monochromatic scale

Palettes built from #b02aec

Shades — darker

Tints — lighter

Tones — desaturated

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#b02aec in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

On screens

Holds up across typical panel gamma. Still worth checking on an uncalibrated laptop, where mid-tones shift most.

In dark mode

Too dim on dark surfaces at 4.39:1 — lift it to #B22FEC for body text, or reserve it for fills.

Explore nearby colors

Small, deliberate steps away from this hex — useful when you are hunting for the version of a colour that finally feels right.

#b02aec, answered

What color is #b02aec?

#b02aec is a balanced electric violet, closest to Dark Orchid (ΔE2000 5.5). It sits at 281° on the hue wheel with 84% saturation and 55% lightness, which reads as cool.

What is the RGB value of #b02aec?

rgb(176, 42, 236) — 176 red, 42 green and 236 blue out of 255, or 69% / 16.5% / 92.5% by channel.

What is #b02aec in HSL and HSV?

hsl(281, 84%, 55%) and hsv(281, 82%, 93%). HSL is what CSS takes; HSV is what your design tool's picker shows, which is why the saturation numbers rarely match.

Is #b02aec a light or a dark color?

It is a dark color. Relative luminance is 0.1694 and perceived brightness is 51%, so white text on it reaches 4.79:1.

Should I use black or white text on #b02aec?

White. It scores 4.79:1 against #b02aec, versus 4.39:1 for black — AA at any size.

Is #b02aec accessible on a white background?

#b02aec on white scores 4.79:1, which clears AA at every size but not AAA.

What is the complementary color of #b02aec?

#66EC2A sits directly opposite on the wheel. Softer options are the split-complements #C7EC2A and #2AEC4F, which give the same contrast with far less vibration.

What colors go well with #b02aec?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #70C00C as an accent and #540A75 for hover and pressed states. For a palette, the analogous pair #4F2AEC and #EC2AC7 stays calm, while #66EC2A is the loudest partner.

What is #b02aec in CMYK for printing?

cmyk(25%, 82%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #b02aec warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC2AE1; nudged cooler, #6828EE.

Which Tailwind color is closest to #b02aec?

The purple family — its 500 step is #a855f7, ΔE2000 6.9 away. That is a visible difference, so define #b02aec as a custom token rather than reaching for the built-in.

How do I use #b02aec in Tailwind CSS?

Inline it as an arbitrary value with bg-[#b02aec] or text-[#b02aec], or register the whole ramp under theme.extend.colors.brand so you get bg-brand-500 and friends. The generated 50–950 scale on this page is ready to paste into your config.

What is #b02aec with 50% opacity?

rgba(176, 42, 236, 0.5), or #b02aec80 in eight-digit hex. Over white that composites to #D895F6; over black, #581576.

Is #b02aec a web-safe color?

No. The nearest web-safe colour is #9933FF, ΔE2000 4.5 away. The palette only matters for legacy displays and some email clients now.

What does the color #b02aec mean?

As a violet, it reads creative, premium, modern. Violet sits between the warmth of red and the calm of blue, so it reads as inventive without reading as risky. Current shorthand for software craft. At this chroma the effect is amplified — it will dominate whatever sits beside it.

What gradient works with #b02aec?

The safest is same-hue elevation: linear-gradient(135deg, #C562F1, #b02aec 45%, #540A75). For more colour, a short hue run to #E31488 keeps it rich without turning muddy.

Work with #b02aec in the Color Lab

Every tool opens with this colour already loaded.

Every value on this page is computed from #b02aec at request time — conversions, contrast ratios and ΔE distances are calculated, never looked up.