#5F2FD4#5F2FD4

#5F2FD4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.230 H 287.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5F2FD4
RGBrgb(95, 47, 212)
HSLhsl(257, 66%, 51%)
HSVhsv(257, 78%, 83%)
CMYKcmyk(55.2%, 77.8%, 0%, 16.9%)
CIE-LABlab(36.40, 59.21, -76.42)
CIE-LCHlch(36.40, 96.67, 307.77°)
OKLaboklab(47.85% 0.0688 -0.22)
OKLCHoklch(47.85% 0.23 287.4)
XYZxyz(17.6160, 9.2184, 63.1257)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FD4 #A4D42F
analogous
#2F51D4 #5F2FD4 #B22FD4
triadic
#5F2FD4 #D45F2F #2FD45F
tetradic
#5F2FD4 #D42F51 #A4D42F #2FD4B2
square
#5F2FD4 #D42F51 #A4D42F #2FD4B2
split-complementary
#5F2FD4 #D4B22F #51D42F
monochromatic
#321771 #4822A4 #5F2FD4 #8662DE #AD94E9

Accessibility & contrast

On white

7.38
#5F2FD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5F2FD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FD4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FD4#FFFFFF#000000##FFFFFF
##5F2FD41.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0051D1
Tritanopia (blue-blind)
#2B5F81
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f2fd4;
/* rgb */ color: rgb(95, 47, 212);
/* oklch */ color: oklch(47.9% 0.230 287.4);
Tailwind
colors: {
  custom: {
    50: '#996ee3',
    500: '#5f2fd4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fd4;
$custom-light: #996ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fd4",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 212
  },
  "hsl": {
    "h": 257.455,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47853,
    "c": 0.23049,
    "h": 287.4
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#5F2FD4
secondary
#BFD48B
accent
#E93FB7
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F2FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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