#B04EF2#B04EF2

#B04EF2 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.4% C 0.238 H 308.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B04EF2
RGBrgb(176, 78, 242)
HSLhsl(276, 86%, 63%)
HSVhsv(276, 68%, 95%)
CMYKcmyk(27.3%, 67.8%, 0%, 5.1%)
CIE-LABlab(53.05, 66.31, -65.92)
CIE-LCHlch(53.05, 93.50, 315.17°)
OKLaboklab(62.44% 0.1478 -0.1867)
OKLCHoklch(62.44% 0.238 308.4)
XYZxyz(36.6526, 21.0903, 86.1272)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EF2 #90F24E
analogous
#5E4EF2 #B04EF2 #F24EE2
triadic
#B04EF2 #F2B04E #4EF2B0
tetradic
#B04EF2 #F25E4E #90F24E #4EE2F2
square
#B04EF2 #F25E4E #90F24E #4EE2F2
split-complementary
#B04EF2 #E2F24E #4EF25E
monochromatic
#730EB8 #9715EE #B04EF2 #C987F6 #E3C0FA

Accessibility & contrast

On white

4.02
#B04EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#B04EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04EF2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EF2#FFFFFF#000000##000000
##B04EF21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#2980EE
Tritanopia (blue-blind)
#A6729A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b04ef2;
/* rgb */ color: rgb(176, 78, 242);
/* oklch */ color: oklch(62.4% 0.238 308.4);
Tailwind
colors: {
  custom: {
    50: '#cc86f7',
    500: '#b04ef2',
    950: '#000000',
  },
}
SCSS
$custom: #b04ef2;
$custom-light: #cc86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ef2",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 242
  },
  "hsl": {
    "h": 275.854,
    "s": 86.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62445,
    "c": 0.23808,
    "h": 308.4
  },
  "luminance": 0.2109
}

Semantic roles & 50–950 ramp

primary
#B04EF2
secondary
#C8ECB0
accent
#E3035D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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