#B04CEB#B04CEB

#B04CEB is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.8% C 0.234 H 310.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#B04CEB
RGBrgb(176, 76, 235)
HSLhsl(278, 80%, 61%)
HSVhsv(278, 68%, 92%)
CMYKcmyk(25.1%, 67.7%, 0%, 7.8%)
CIE-LABlab(52.28, 65.69, -63.23)
CIE-LCHlch(52.28, 91.17, 316.09°)
OKLaboklab(61.75% 0.1506 -0.1788)
OKLCHoklch(61.75% 0.234 310.1)
XYZxyz(35.4814, 20.3979, 80.6492)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04CEB #87EB4C
analogous
#604CEB #B04CEB #EB4CD6
triadic
#B04CEB #EBB04C #4CEBB0
tetradic
#B04CEB #EB604C #87EB4C #4CD6EB
square
#B04CEB #EB604C #87EB4C #4CD6EB
split-complementary
#B04CEB #D6EB4C #4CEB60
monochromatic
#7213AA #9719E1 #B04CEB #C883F1 #E1BAF7

Accessibility & contrast

On white

4.13
#B04CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#B04CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04CEB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04CEB#FFFFFF#000000##000000
##B04CEB1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#327EE7
Tritanopia (blue-blind)
#A86E96
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b04ceb;
/* rgb */ color: rgb(176, 76, 235);
/* oklch */ color: oklch(61.8% 0.234 310.1);
Tailwind
colors: {
  custom: {
    50: '#cc85f2',
    500: '#b04ceb',
    950: '#000000',
  },
}
SCSS
$custom: #b04ceb;
$custom-light: #cc85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ceb",
  "rgb": {
    "r": 176,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 277.736,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61754,
    "c": 0.23372,
    "h": 310.1
  },
  "luminance": 0.20397
}

Semantic roles & 50–950 ramp

primary
#B04CEB
secondary
#C2E7AB
accent
#DC0958
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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