#B04EF1#B04EF1

#B04EF1 is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.4% C 0.237 H 308.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B04EF1
RGBrgb(176, 78, 241)
HSLhsl(276, 85%, 63%)
HSVhsv(276, 68%, 95%)
CMYKcmyk(27%, 67.6%, 0%, 5.5%)
CIE-LABlab(52.98, 66.10, -65.46)
CIE-LCHlch(52.98, 93.03, 315.28°)
OKLaboklab(62.38% 0.1479 -0.1853)
OKLCHoklch(62.38% 0.237 308.6)
XYZxyz(36.5028, 21.0304, 85.3383)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EF1 #8FF14E
analogous
#5F4EF1 #B04EF1 #F14EE0
triadic
#B04EF1 #F1B04E #4EF1B0
tetradic
#B04EF1 #F15F4E #8FF14E #4EE0F1
square
#B04EF1 #F15F4E #8FF14E #4EE0F1
split-complementary
#B04EF1 #E0F14E #4EF15F
monochromatic
#730EB6 #9715ED #B04EF1 #C987F5 #E3BFFA

Accessibility & contrast

On white

4.03
#B04EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#B04EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04EF1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EF1#FFFFFF#000000##000000
##B04EF11.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF6
Deuteranopia (green-blind)
#2B80ED
Tritanopia (blue-blind)
#A6729A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b04ef1;
/* rgb */ color: rgb(176, 78, 241);
/* oklch */ color: oklch(62.4% 0.237 308.6);
Tailwind
colors: {
  custom: {
    50: '#cc86f6',
    500: '#b04ef1',
    950: '#000000',
  },
}
SCSS
$custom: #b04ef1;
$custom-light: #cc86f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ef1",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 241
  },
  "hsl": {
    "h": 276.074,
    "s": 85.34,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62377,
    "c": 0.23711,
    "h": 308.6
  },
  "luminance": 0.2103
}

Semantic roles & 50–950 ramp

primary
#B04EF1
secondary
#C7EBB0
accent
#E2045C
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04EF1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B04EF1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva