#B04FF2#B04FF2

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

Color values

HEX#B04FF2
RGBrgb(176, 79, 242)
HSLhsl(276, 86%, 63%)
HSVhsv(276, 67%, 95%)
CMYKcmyk(27.3%, 67.4%, 0%, 5.1%)
CIE-LABlab(53.20, 65.88, -65.67)
CIE-LCHlch(53.20, 93.02, 315.09°)
OKLaboklab(62.56% 0.1467 -0.1859)
OKLCHoklch(62.56% 0.237 308.3)
XYZxyz(36.7242, 21.2334, 86.1510)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04FF2 #91F24F
analogous
#5F4FF2 #B04FF2 #F24FE2
triadic
#B04FF2 #F2B04F #4FF2B0
tetradic
#B04FF2 #F25F4F #91F24F #4FE2F2
square
#B04FF2 #F25F4F #91F24F #4FE2F2
split-complementary
#B04FF2 #E2F24F #4FF25F
monochromatic
#740EB9 #9616EE #B04FF2 #CA88F6 #E3C1FA

Accessibility & contrast

On white

4.00
#B04FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#B04FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04FF2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04FF2#FFFFFF#000000##000000
##B04FF21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#2B80EE
Tritanopia (blue-blind)
#A6729B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b04ff2;
/* rgb */ color: rgb(176, 79, 242);
/* oklch */ color: oklch(62.6% 0.237 308.3);
Tailwind
colors: {
  custom: {
    50: '#cc87f7',
    500: '#b04ff2',
    950: '#000000',
  },
}
SCSS
$custom: #b04ff2;
$custom-light: #cc87f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ff2",
  "rgb": {
    "r": 176,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 275.706,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62556,
    "c": 0.23687,
    "h": 308.3
  },
  "luminance": 0.21233
}

Semantic roles & 50–950 ramp

primary
#B04FF2
secondary
#C9ECB1
accent
#E3035D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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