#B04CE4#B04CE4

#B04CE4 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.3% C 0.227 H 311.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B04CE4
RGBrgb(176, 76, 228)
HSLhsl(279, 74%, 60%)
HSVhsv(279, 67%, 89%)
CMYKcmyk(22.8%, 66.7%, 0%, 10.6%)
CIE-LABlab(51.84, 64.22, -60.00)
CIE-LCHlch(51.84, 87.89, 316.95°)
OKLaboklab(61.29% 0.1512 -0.1693)
OKLCHoklch(61.29% 0.227 311.8)
XYZxyz(34.4900, 20.0013, 75.4275)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04CE4 #80E44C
analogous
#644CE4 #B04CE4 #E44CCC
triadic
#B04CE4 #E4B04C #4CE4B0
tetradic
#B04CE4 #E4644C #80E44C #4CCCE4
square
#B04CE4 #E4644C #80E44C #4CCCE4
split-complementary
#B04CE4 #CCE44C #4CE464
monochromatic
#70189E #9620D3 #B04CE4 #C781EC #DFB6F4

Accessibility & contrast

On white

4.20
#B04CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#B04CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04CE4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04CE4#FFFFFF#000000##000000
##B04CE41.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#3C7EE1
Tritanopia (blue-blind)
#AA6B92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b04ce4;
/* rgb */ color: rgb(176, 76, 228);
/* oklch */ color: oklch(61.3% 0.227 311.8);
Tailwind
colors: {
  custom: {
    50: '#cc85ed',
    500: '#b04ce4',
    950: '#000000',
  },
}
SCSS
$custom: #b04ce4;
$custom-light: #cc85ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ce4",
  "rgb": {
    "r": 176,
    "g": 76,
    "b": 228
  },
  "hsl": {
    "h": 279.474,
    "s": 73.786,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61293,
    "c": 0.22698,
    "h": 311.8
  },
  "luminance": 0.2
}

Semantic roles & 50–950 ramp

primary
#B04CE4
secondary
#BDE3A8
accent
#F03777
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B04CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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