#5F41EA#5F41EA

#5F41EA is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.238 H 282.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5F41EA
RGBrgb(95, 65, 234)
HSLhsl(251, 80%, 59%)
HSVhsv(251, 72%, 92%)
CMYKcmyk(59.4%, 72.2%, 0%, 8.2%)
CIE-LABlab(41.46, 56.78, -80.68)
CIE-LCHlch(41.46, 98.66, 305.14°)
OKLaboklab(52.02% 0.0511 -0.2326)
OKLCHoklch(52.02% 0.238 282.4)
XYZxyz(21.4563, 12.1525, 79.0410)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41EA #CCEA41
analogous
#4177EA #5F41EA #B341EA
triadic
#5F41EA #EA5F41 #41EA5F
tetradic
#5F41EA #EA4177 #CCEA41 #41EAB3
square
#5F41EA #EA4177 #CCEA41 #41EAB3
split-complementary
#5F41EA #EAB341 #77EA41
monochromatic
#2B129F #3918D6 #5F41EA #8D78F0 #BCAFF6

Accessibility & contrast

On white

6.12
#5F41EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F41EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41EA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41EA#FFFFFF#000000##FFFFFF
##5F41EA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EF
Deuteranopia (green-blind)
#005CE7
Tritanopia (blue-blind)
#007092
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f41ea;
/* rgb */ color: rgb(95, 65, 234);
/* oklch */ color: oklch(52.0% 0.238 282.4);
Tailwind
colors: {
  custom: {
    50: '#9b79f2',
    500: '#5f41ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f41ea;
$custom-light: #9b79f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41ea",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 250.651,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52021,
    "c": 0.23812,
    "h": 282.4
  },
  "luminance": 0.12154
}

Semantic roles & 50–950 ramp

primary
#5F41EA
secondary
#D9E5A2
accent
#F731D4
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F41EA

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

Preview Lab → · Contrast checker → · Palette generator →

#5F41EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva