#B252E8#B252E8

#B252E8 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.5% C 0.224 H 311.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B252E8
RGBrgb(178, 82, 232)
HSLhsl(278, 77%, 62%)
HSVhsv(278, 65%, 91%)
CMYKcmyk(23.3%, 64.7%, 0%, 9%)
CIE-LABlab(53.31, 62.83, -59.88)
CIE-LCHlch(53.31, 86.80, 316.38°)
OKLaboklab(62.48% 0.1469 -0.1689)
OKLCHoklch(62.48% 0.224 311)
XYZxyz(35.9401, 21.3266, 78.5514)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252E8 #88E852
analogous
#6752E8 #B252E8 #E852D3
triadic
#B252E8 #E8B252 #52E8B2
tetradic
#B252E8 #E86752 #88E852 #52D3E8
square
#B252E8 #E86752 #88E852 #52D3E8
split-complementary
#B252E8 #D3E852 #52E867
monochromatic
#7416A9 #991EDF #B252E8 #CA88EF #E2BEF6

Accessibility & contrast

On white

3.99
#B252E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#B252E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252E8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252E8#FFFFFF#000000##000000
##B252E81.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BED
Deuteranopia (green-blind)
#4181E5
Tritanopia (blue-blind)
#AB7096
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b252e8;
/* rgb */ color: rgb(178, 82, 232);
/* oklch */ color: oklch(62.5% 0.224 311.0);
Tailwind
colors: {
  custom: {
    50: '#cd89f0',
    500: '#b252e8',
    950: '#000000',
  },
}
SCSS
$custom: #b252e8;
$custom-light: #cd89f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b252e8",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 278.4,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62481,
    "c": 0.22384,
    "h": 311
  },
  "luminance": 0.21326
}

Semantic roles & 50–950 ramp

primary
#B252E8
secondary
#C3E7AF
accent
#D90D56
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B252E8

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

Preview Lab → · Contrast checker → · Palette generator →

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