#B04BEC#B04BEC

#B04BEC is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.7% C 0.236 H 310.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B04BEC
RGBrgb(176, 75, 236)
HSLhsl(278, 81%, 61%)
HSVhsv(278, 68%, 93%)
CMYKcmyk(25.4%, 68.2%, 0%, 7.5%)
CIE-LABlab(52.20, 66.33, -63.93)
CIE-LCHlch(52.20, 92.12, 316.05°)
OKLaboklab(61.71% 0.1515 -0.1808)
OKLCHoklch(61.71% 0.236 310)
XYZxyz(35.5579, 20.3191, 81.3894)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04BEC #87EC4B
analogous
#5F4BEC #B04BEC #EC4BD7
triadic
#B04BEC #ECB04B #4BECB0
tetradic
#B04BEC #EC5F4B #87EC4B #4BD7EC
square
#B04BEC #EC5F4B #87EC4B #4BD7EC
split-complementary
#B04BEC #D7EC4B #4BEC5F
monochromatic
#7212AB #9718E2 #B04BEC #C882F2 #E1BAF8

Accessibility & contrast

On white

4.15
#B04BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#B04BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04BEC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04BEC#FFFFFF#000000##000000
##B04BEC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#2F7EE8
Tritanopia (blue-blind)
#A86E96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b04bec;
/* rgb */ color: rgb(176, 75, 236);
/* oklch */ color: oklch(61.7% 0.236 310.0);
Tailwind
colors: {
  custom: {
    50: '#cc85f3',
    500: '#b04bec',
    950: '#000000',
  },
}
SCSS
$custom: #b04bec;
$custom-light: #cc85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b04bec",
  "rgb": {
    "r": 176,
    "g": 75,
    "b": 236
  },
  "hsl": {
    "h": 277.64,
    "s": 80.905,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61712,
    "c": 0.2359,
    "h": 310
  },
  "luminance": 0.20318
}

Semantic roles & 50–950 ramp

primary
#B04BEC
secondary
#C2E8AB
accent
#DD0858
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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