#B252F0#B252F0

#B252F0 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 63.0% C 0.232 H 309.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B252F0
RGBrgb(178, 82, 240)
HSLhsl(276, 84%, 63%)
HSVhsv(276, 66%, 94%)
CMYKcmyk(25.8%, 65.8%, 0%, 5.9%)
CIE-LABlab(53.81, 64.54, -63.56)
CIE-LCHlch(53.81, 90.58, 315.43°)
OKLaboklab(63% 0.1463 -0.1797)
OKLCHoklch(63% 0.232 309.1)
XYZxyz(37.1024, 21.7915, 84.6728)
Luminance0.2179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252F0 #90F052
analogous
#6352F0 #B252F0 #F052DF
triadic
#B252F0 #F0B252 #52F0B2
tetradic
#B252F0 #F06352 #90F052 #52DFF0
square
#B252F0 #F06352 #90F052 #52DFF0
split-complementary
#B252F0 #DFF052 #52F063
monochromatic
#7610B8 #991AEB #B252F0 #CB8AF5 #E4C3FA

Accessibility & contrast

On white

3.92
#B252F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#B252F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252F0
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252F0#FFFFFF#000000##000000
##B252F01.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF5
Deuteranopia (green-blind)
#3682EC
Tritanopia (blue-blind)
#A9739A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b252f0;
/* rgb */ color: rgb(178, 82, 240);
/* oklch */ color: oklch(63.0% 0.232 309.1);
Tailwind
colors: {
  custom: {
    50: '#cd89f6',
    500: '#b252f0',
    950: '#000000',
  },
}
SCSS
$custom: #b252f0;
$custom-light: #cd89f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b252f0",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 240
  },
  "hsl": {
    "h": 276.456,
    "s": 84.043,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63,
    "c": 0.23173,
    "h": 309.1
  },
  "luminance": 0.21791
}

Semantic roles & 50–950 ramp

primary
#B252F0
secondary
#C9EBB3
accent
#E0055B
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B252F0

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

Preview Lab → · Contrast checker → · Palette generator →

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