#B252E7#B252E7

#B252E7 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.4% C 0.223 H 311.2°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B252E7
RGBrgb(178, 82, 231)
HSLhsl(279, 76%, 61%)
HSVhsv(279, 65%, 91%)
CMYKcmyk(22.9%, 64.5%, 0%, 9.4%)
CIE-LABlab(53.24, 62.62, -59.42)
CIE-LCHlch(53.24, 86.33, 316.50°)
OKLaboklab(62.42% 0.1469 -0.1676)
OKLCHoklch(62.42% 0.223 311.2)
XYZxyz(35.7985, 21.2699, 77.8055)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252E7 #87E752
analogous
#6852E7 #B252E7 #E752D2
triadic
#B252E7 #E7B252 #52E7B2
tetradic
#B252E7 #E76852 #87E752 #52D2E7
square
#B252E7 #E76852 #87E752 #52D2E7
split-complementary
#B252E7 #D2E752 #52E768
monochromatic
#7417A7 #991FDD #B252E7 #CA88EE #E2BDF6

Accessibility & contrast

On white

4.00
#B252E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#B252E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252E7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252E7#FFFFFF#000000##000000
##B252E71.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEC
Deuteranopia (green-blind)
#4281E4
Tritanopia (blue-blind)
#AB7096
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b252e7;
/* rgb */ color: rgb(178, 82, 231);
/* oklch */ color: oklch(62.4% 0.223 311.2);
Tailwind
colors: {
  custom: {
    50: '#cd89ef',
    500: '#b252e7',
    950: '#000000',
  },
}
SCSS
$custom: #b252e7;
$custom-light: #cd89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b252e7",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 278.658,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62417,
    "c": 0.22284,
    "h": 311.2
  },
  "luminance": 0.21269
}

Semantic roles & 50–950 ramp

primary
#B252E7
secondary
#C2E6AF
accent
#D80E56
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B252E7

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

Preview Lab → · Contrast checker → · Palette generator →

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