#B252F3#B252F3

#B252F3 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.2% C 0.235 H 308.5°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B252F3
RGBrgb(178, 82, 243)
HSLhsl(276, 87%, 64%)
HSVhsv(276, 66%, 95%)
CMYKcmyk(26.7%, 66.3%, 0%, 4.7%)
CIE-LABlab(54.00, 65.18, -64.93)
CIE-LCHlch(54.00, 92.00, 315.11°)
OKLaboklab(63.2% 0.146 -0.1837)
OKLCHoklch(63.2% 0.235 308.5)
XYZxyz(37.5518, 21.9712, 87.0393)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252F3 #93F352
analogous
#6152F3 #B252F3 #F352E4
triadic
#B252F3 #F3B252 #52F3B2
tetradic
#B252F3 #F36152 #93F352 #52E4F3
square
#B252F3 #F36152 #93F352 #52E4F3
split-complementary
#B252F3 #E4F352 #52F361
monochromatic
#760DBD #9919EF #B252F3 #CB8BF7 #E5C4FB

Accessibility & contrast

On white

3.89
#B252F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#B252F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252F3
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252F3#FFFFFF#000000##000000
##B252F31.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF8
Deuteranopia (green-blind)
#3282EF
Tritanopia (blue-blind)
#A8749C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b252f3;
/* rgb */ color: rgb(178, 82, 243);
/* oklch */ color: oklch(63.2% 0.235 308.5);
Tailwind
colors: {
  custom: {
    50: '#ce89f8',
    500: '#b252f3',
    950: '#000000',
  },
}
SCSS
$custom: #b252f3;
$custom-light: #ce89f8;
$custom-dark: #000000;
JSON
{
  "hex": "#b252f3",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 243
  },
  "hsl": {
    "h": 275.776,
    "s": 87.027,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63198,
    "c": 0.2347,
    "h": 308.5
  },
  "luminance": 0.21971
}

Semantic roles & 50–950 ramp

primary
#B252F3
secondary
#CBEDB4
accent
#E4025D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B252F3

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

Preview Lab → · Contrast checker → · Palette generator →

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