#5F237E#5F237E

#5F237E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.150 H 311.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5F237E
RGBrgb(95, 35, 126)
HSLhsl(280, 57%, 32%)
HSVhsv(280, 72%, 49%)
CMYKcmyk(24.6%, 72.2%, 0%, 50.6%)
CIE-LABlab(27.13, 42.69, -39.79)
CIE-LCHlch(27.13, 58.36, 317.02°)
OKLaboklab(39.07% 0.0999 -0.1124)
OKLCHoklch(39.07% 0.15 311.6)
XYZxyz(9.0855, 5.1416, 20.2484)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F237E #427E23
analogous
#31237E #5F237E #7E2370
triadic
#5F237E #7E5F23 #237E5F
tetradic
#5F237E #7E3123 #427E23 #23707E
square
#5F237E #7E3123 #427E23 #23707E
split-complementary
#5F237E #707E23 #237E31
monochromatic
#17081E #3B164E #5F237E #8330AE #A24ECE

Accessibility & contrast

On white

10.35
#5F237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F237E
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F237E#FFFFFF#000000##FFFFFF
##5F237E1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#18417C
Tritanopia (blue-blind)
#5B364E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f237e;
/* rgb */ color: rgb(95, 35, 126);
/* oklch */ color: oklch(39.1% 0.150 311.6);
Tailwind
colors: {
  custom: {
    50: '#9063a4',
    500: '#5f237e',
    950: '#000000',
  },
}
SCSS
$custom: #5f237e;
$custom-light: #9063a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f237e",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 279.56,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39067,
    "c": 0.15036,
    "h": 311.6
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#5F237E
secondary
#6EB04C
accent
#E0487C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F237E

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

Preview Lab → · Contrast checker → · Palette generator →

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