#B252FD#B252FD

#B252FD is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.9% C 0.245 H 306.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B252FD
RGBrgb(178, 82, 253)
HSLhsl(274, 98%, 66%)
HSVhsv(274, 68%, 99%)
CMYKcmyk(29.6%, 67.6%, 0%, 0.8%)
CIE-LABlab(54.65, 67.35, -69.44)
CIE-LCHlch(54.65, 96.74, 314.12°)
OKLaboklab(63.87% 0.145 -0.197)
OKLCHoklch(63.87% 0.245 306.3)
XYZxyz(39.1032, 22.5918, 95.2101)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252FD #9DFD52
analogous
#5C52FD #B252FD #FD52F3
triadic
#B252FD #FDB252 #52FDB2
tetradic
#B252FD #FD5C52 #9DFD52 #52F3FD
square
#B252FD #FD5C52 #9DFD52 #52F3FD
split-complementary
#B252FD #F3FD52 #52FD5C
monochromatic
#7702D2 #9715FC #B252FD #CD8EFE #E8CBFE

Accessibility & contrast

On white

3.81
#B252FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#B252FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252FD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252FD#FFFFFF#000000##000000
##B252FD1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#1D83F9
Tritanopia (blue-blind)
#A578A2
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b252fd;
/* rgb */ color: rgb(178, 82, 253);
/* oklch */ color: oklch(63.9% 0.245 306.3);
Tailwind
colors: {
  custom: {
    50: '#ce89ff',
    500: '#b252fd',
    950: '#000000',
  },
}
SCSS
$custom: #b252fd;
$custom-light: #ce89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b252fd",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 253
  },
  "hsl": {
    "h": 273.684,
    "s": 97.714,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63873,
    "c": 0.24459,
    "h": 306.3
  },
  "luminance": 0.22591
}

Semantic roles & 50–950 ramp

primary
#B252FD
secondary
#D2F2B9
accent
#E60065
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B252FD

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

Preview Lab → · Contrast checker → · Palette generator →

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