#5239CF#5239CF

#5239CF is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.217 H 281.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5239CF
RGBrgb(82, 57, 207)
HSLhsl(250, 61%, 52%)
HSVhsv(250, 72%, 81%)
CMYKcmyk(60.4%, 72.5%, 0%, 18.8%)
CIE-LABlab(36.41, 51.32, -73.55)
CIE-LCHlch(36.41, 89.69, 304.90°)
OKLaboklab(47.43% 0.0446 -0.2121)
OKLCHoklch(47.43% 0.217 281.9)
XYZxyz(16.2018, 9.2239, 59.9460)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239CF #B6CF39
analogous
#396BCF #5239CF #9D39CF
triadic
#5239CF #CF5239 #39CF52
tetradic
#5239CF #CF396B #B6CF39 #39CF9D
square
#5239CF #CF396B #B6CF39 #39CF9D
split-complementary
#5239CF #CF9D39 #6BCF39
monochromatic
#2A1C72 #3C28A3 #5239CF #7D6ADB #A89CE7

Accessibility & contrast

On white

7.38
#5239CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5239CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239CF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239CF#FFFFFF#000000##FFFFFF
##5239CF1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#006381
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5239cf;
/* rgb */ color: rgb(82, 57, 207);
/* oklch */ color: oklch(47.4% 0.217 281.9);
Tailwind
colors: {
  custom: {
    50: '#9172df',
    500: '#5239cf',
    950: '#000000',
  },
}
SCSS
$custom: #5239cf;
$custom-light: #9172df;
$custom-dark: #000000;
JSON
{
  "hex": "#5239cf",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 207
  },
  "hsl": {
    "h": 250,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47426,
    "c": 0.2167,
    "h": 281.9
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

primary
#5239CF
secondary
#C8D391
accent
#E444C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239CF

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

Preview Lab → · Contrast checker → · Palette generator →

#5239CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva