#B252E6#B252E6

#B252E6 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.4% C 0.222 H 311.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B252E6
RGBrgb(178, 82, 230)
HSLhsl(279, 75%, 61%)
HSVhsv(279, 64%, 90%)
CMYKcmyk(22.6%, 64.3%, 0%, 9.8%)
CIE-LABlab(53.18, 62.41, -58.96)
CIE-LCHlch(53.18, 85.86, 316.63°)
OKLaboklab(62.35% 0.147 -0.1662)
OKLCHoklch(62.35% 0.222 311.5)
XYZxyz(35.6577, 21.2136, 77.0638)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252E6 #86E652
analogous
#6852E6 #B252E6 #E652D0
triadic
#B252E6 #E6B252 #52E6B2
tetradic
#B252E6 #E66852 #86E652 #52D0E6
square
#B252E6 #E66852 #86E652 #52D0E6
split-complementary
#B252E6 #D0E652 #52E668
monochromatic
#7418A6 #9920DB #B252E6 #CA87EE #E2BDF5

Accessibility & contrast

On white

4.01
#B252E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#B252E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252E6
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252E6#FFFFFF#000000##000000
##B252E61.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#4381E3
Tritanopia (blue-blind)
#AC6F95
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b252e6;
/* rgb */ color: rgb(178, 82, 230);
/* oklch */ color: oklch(62.4% 0.222 311.5);
Tailwind
colors: {
  custom: {
    50: '#cd89ef',
    500: '#b252e6',
    950: '#000000',
  },
}
SCSS
$custom: #b252e6;
$custom-light: #cd89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b252e6",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 278.919,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62354,
    "c": 0.22186,
    "h": 311.5
  },
  "luminance": 0.21213
}

Semantic roles & 50–950 ramp

primary
#B252E6
secondary
#C2E6AE
accent
#D70F55
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B252E6

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

Preview Lab → · Contrast checker → · Palette generator →

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