#B04EF4#B04EF4

#B04EF4 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.6% C 0.240 H 307.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B04EF4
RGBrgb(176, 78, 244)
HSLhsl(275, 88%, 63%)
HSVhsv(275, 68%, 96%)
CMYKcmyk(27.9%, 68%, 0%, 4.3%)
CIE-LABlab(53.18, 66.74, -66.82)
CIE-LCHlch(53.18, 94.45, 314.97°)
OKLaboklab(62.58% 0.1475 -0.1893)
OKLCHoklch(62.58% 0.24 307.9)
XYZxyz(36.9546, 21.2111, 87.7178)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EF4 #92F44E
analogous
#5D4EF4 #B04EF4 #F44EE5
triadic
#B04EF4 #F4B04E #4EF4B0
tetradic
#B04EF4 #F45D4E #92F44E #4EE5F4
square
#B04EF4 #F45D4E #92F44E #4EE5F4
split-complementary
#B04EF4 #E5F44E #4EF45D
monochromatic
#740CBC #9614F0 #B04EF4 #CA88F8 #E3C1FB

Accessibility & contrast

On white

4.01
#B04EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#B04EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04EF4
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EF4#FFFFFF#000000##000000
##B04EF41.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF9
Deuteranopia (green-blind)
#2580F0
Tritanopia (blue-blind)
#A5739B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b04ef4;
/* rgb */ color: rgb(176, 78, 244);
/* oklch */ color: oklch(62.6% 0.240 307.9);
Tailwind
colors: {
  custom: {
    50: '#cd87f9',
    500: '#b04ef4',
    950: '#000000',
  },
}
SCSS
$custom: #b04ef4;
$custom-light: #cd87f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ef4",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 244
  },
  "hsl": {
    "h": 275.422,
    "s": 88.298,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62581,
    "c": 0.24004,
    "h": 307.9
  },
  "luminance": 0.21211
}

Semantic roles & 50–950 ramp

primary
#B04EF4
secondary
#CAEDB1
accent
#E5015E
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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