#B252EE#B252EE

#B252EE is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.9% C 0.230 H 309.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B252EE
RGBrgb(178, 82, 238)
HSLhsl(277, 82%, 63%)
HSVhsv(277, 66%, 93%)
CMYKcmyk(25.2%, 65.5%, 0%, 6.7%)
CIE-LABlab(53.68, 64.11, -62.65)
CIE-LCHlch(53.68, 89.64, 315.66°)
OKLaboklab(62.87% 0.1464 -0.177)
OKLCHoklch(62.87% 0.23 309.6)
XYZxyz(36.8070, 21.6733, 83.1167)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252EE #8EEE52
analogous
#6452EE #B252EE #EE52DC
triadic
#B252EE #EEB252 #52EEB2
tetradic
#B252EE #EE6452 #8EEE52 #52DCEE
square
#B252EE #EE6452 #8EEE52 #52DCEE
split-complementary
#B252EE #DCEE52 #52EE64
monochromatic
#7612B4 #991AE9 #B252EE #CB8AF3 #E4C1F9

Accessibility & contrast

On white

3.94
#B252EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#B252EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252EE
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252EE#FFFFFF#000000##000000
##B252EE1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF3
Deuteranopia (green-blind)
#3982EA
Tritanopia (blue-blind)
#AA7299
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b252ee;
/* rgb */ color: rgb(178, 82, 238);
/* oklch */ color: oklch(62.9% 0.230 309.6);
Tailwind
colors: {
  custom: {
    50: '#cd89f4',
    500: '#b252ee',
    950: '#000000',
  },
}
SCSS
$custom: #b252ee;
$custom-light: #cd89f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b252ee",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 276.923,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62869,
    "c": 0.22976,
    "h": 309.6
  },
  "luminance": 0.21673
}

Semantic roles & 50–950 ramp

primary
#B252EE
secondary
#C7EAB2
accent
#DE075A
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B252EE

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

Preview Lab → · Contrast checker → · Palette generator →

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