#B252E4#B252E4

#B252E4 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.2% C 0.220 H 312.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B252E4
RGBrgb(178, 82, 228)
HSLhsl(279, 73%, 61%)
HSVhsv(279, 64%, 89%)
CMYKcmyk(21.9%, 64%, 0%, 10.6%)
CIE-LABlab(53.06, 61.99, -58.02)
CIE-LCHlch(53.06, 84.91, 316.89°)
OKLaboklab(62.23% 0.1471 -0.1635)
OKLCHoklch(62.23% 0.22 312)
XYZxyz(35.3784, 21.1019, 75.5931)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252E4 #84E452
analogous
#6952E4 #B252E4 #E452CD
triadic
#B252E4 #E4B252 #52E4B2
tetradic
#B252E4 #E46952 #84E452 #52CDE4
square
#B252E4 #E46952 #84E452 #52CDE4
split-complementary
#B252E4 #CDE452 #52E469
monochromatic
#7319A2 #9922D7 #B252E4 #CA87EC #E1BCF5

Accessibility & contrast

On white

4.02
#B252E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#B252E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252E4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252E4#FFFFFF#000000##000000
##B252E41.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#4581E1
Tritanopia (blue-blind)
#AC6F94
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b252e4;
/* rgb */ color: rgb(178, 82, 228);
/* oklch */ color: oklch(62.2% 0.220 312.0);
Tailwind
colors: {
  custom: {
    50: '#cd88ed',
    500: '#b252e4',
    950: '#000000',
  },
}
SCSS
$custom: #b252e4;
$custom-light: #cd88ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b252e4",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 279.452,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62227,
    "c": 0.21989,
    "h": 312
  },
  "luminance": 0.21101
}

Semantic roles & 50–950 ramp

primary
#B252E4
secondary
#C0E5AD
accent
#D51054
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B252E4

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

Preview Lab → · Contrast checker → · Palette generator →

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