#5F40ED#5F40ED

#5F40ED is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.243 H 282.2°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5F40ED
RGBrgb(95, 64, 237)
HSLhsl(251, 83%, 59%)
HSVhsv(251, 73%, 93%)
CMYKcmyk(59.9%, 73%, 0%, 7.1%)
CIE-LABlab(41.55, 58.15, -82.22)
CIE-LCHlch(41.55, 100.71, 305.27°)
OKLaboklab(52.17% 0.0511 -0.2371)
OKLCHoklch(52.17% 0.243 282.2)
XYZxyz(21.8340, 12.2126, 81.3110)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F40ED #CEED40
analogous
#4078ED #5F40ED #B540ED
triadic
#5F40ED #ED5F40 #40ED5F
tetradic
#5F40ED #ED4078 #CEED40 #40EDB5
square
#5F40ED #ED4078 #CEED40 #40EDB5
split-complementary
#5F40ED #EDB540 #78ED40
monochromatic
#2A0FA3 #3815DB #5F40ED #8E78F2 #BDB0F8

Accessibility & contrast

On white

6.10
#5F40ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5F40ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F40ED
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F40ED#FFFFFF#000000##FFFFFF
##5F40ED1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068F2
Deuteranopia (green-blind)
#005CEA
Tritanopia (blue-blind)
#007193
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f40ed;
/* rgb */ color: rgb(95, 64, 237);
/* oklch */ color: oklch(52.2% 0.243 282.2);
Tailwind
colors: {
  custom: {
    50: '#9c78f4',
    500: '#5f40ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f40ed;
$custom-light: #9c78f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f40ed",
  "rgb": {
    "r": 95,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 250.751,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52171,
    "c": 0.24252,
    "h": 282.2
  },
  "luminance": 0.12214
}

Semantic roles & 50–950 ramp

primary
#5F40ED
secondary
#DAE6A2
accent
#F92FD5
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F40ED

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

Preview Lab → · Contrast checker → · Palette generator →

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