#B252FF#B252FF

#B252FF is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 64.0% C 0.247 H 305.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B252FF
RGBrgb(178, 82, 255)
HSLhsl(273, 100%, 66%)
HSVhsv(273, 68%, 100%)
CMYKcmyk(30.2%, 67.8%, 0%, 0%)
CIE-LABlab(54.78, 67.79, -70.34)
CIE-LCHlch(54.78, 97.68, 313.94°)
OKLaboklab(64.01% 0.1447 -0.1996)
OKLCHoklch(64.01% 0.247 305.9)
XYZxyz(39.4234, 22.7199, 96.8969)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252FF #9FFF52
analogous
#5B52FF #B252FF #FF52F5
triadic
#B252FF #FFB252 #52FFB2
tetradic
#B252FF #FF5B52 #9FFF52 #52F5FF
square
#B252FF #FF5B52 #9FFF52 #52F5FF
split-complementary
#B252FF #F5FF52 #52FF5B
monochromatic
#7700D7 #9715FF #B252FF #CD8FFF #E8CCFF

Accessibility & contrast

On white

3.79
#B252FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#B252FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252FF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252FF#FFFFFF#000000##000000
##B252FF1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#1684FB
Tritanopia (blue-blind)
#A479A3
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b252ff;
/* rgb */ color: rgb(178, 82, 255);
/* oklch */ color: oklch(64.0% 0.247 305.9);
Tailwind
colors: {
  custom: {
    50: '#ce89ff',
    500: '#b252ff',
    950: '#000000',
  },
}
SCSS
$custom: #b252ff;
$custom-light: #ce89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b252ff",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 273.295,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6401,
    "c": 0.24657,
    "h": 305.9
  },
  "luminance": 0.2272
}

Semantic roles & 50–950 ramp

primary
#B252FF
secondary
#D3F3BA
accent
#E60066
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B252FF

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

Preview Lab → · Contrast checker → · Palette generator →

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