#B04FEC#B04FEC

#B04FEC is a light, highly saturated violet. Relative luminance 0.209; OKLCH L 62.2% C 0.231 H 309.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B04FEC
RGBrgb(176, 79, 236)
HSLhsl(277, 81%, 62%)
HSVhsv(277, 67%, 93%)
CMYKcmyk(25.4%, 66.5%, 0%, 7.5%)
CIE-LABlab(52.82, 64.60, -62.93)
CIE-LCHlch(52.82, 90.18, 315.75°)
OKLaboklab(62.16% 0.1473 -0.1779)
OKLCHoklch(62.16% 0.231 309.6)
XYZxyz(35.8378, 20.8789, 81.4827)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04FEC #8BEC4F
analogous
#624FEC #B04FEC #EC4FDA
triadic
#B04FEC #ECB04F #4FECB0
tetradic
#B04FEC #EC624F #8BEC4F #4FDAEC
square
#B04FEC #EC624F #8BEC4F #4FDAEC
split-complementary
#B04FEC #DAEC4F #4FEC62
monochromatic
#7313AE #9719E5 #B04FEC #C986F2 #E2BDF8

Accessibility & contrast

On white

4.06
#B04FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#B04FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04FEC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04FEC#FFFFFF#000000##000000
##B04FEC1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#357FE9
Tritanopia (blue-blind)
#A87097
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b04fec;
/* rgb */ color: rgb(176, 79, 236);
/* oklch */ color: oklch(62.2% 0.231 309.6);
Tailwind
colors: {
  custom: {
    50: '#cc87f3',
    500: '#b04fec',
    950: '#000000',
  },
}
SCSS
$custom: #b04fec;
$custom-light: #cc87f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b04fec",
  "rgb": {
    "r": 176,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 277.07,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62156,
    "c": 0.23099,
    "h": 309.6
  },
  "luminance": 0.20878
}

Semantic roles & 50–950 ramp

primary
#B04FEC
secondary
#C5E8AE
accent
#DD095A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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