#5F238F#5F238F

#5F238F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.168 H 305.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5F238F
RGBrgb(95, 35, 143)
HSLhsl(273, 61%, 35%)
HSVhsv(273, 76%, 56%)
CMYKcmyk(33.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(28.43, 46.70, -48.31)
CIE-LCHlch(28.43, 67.19, 314.03°)
OKLaboklab(40.39% 0.0971 -0.1374)
OKLCHoklch(40.39% 0.168 305.2)
XYZxyz(10.2772, 5.6182, 26.5243)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F238F #538F23
analogous
#29238F #5F238F #8F2389
triadic
#5F238F #8F5F23 #238F5F
tetradic
#5F238F #8F2923 #538F23 #23898F
square
#5F238F #8F2923 #538F23 #23898F
split-complementary
#5F238F #898F23 #238F29
monochromatic
#1E0B2D #3E175E #5F238F #802FC0 #9D57D6

Accessibility & contrast

On white

9.89
#5F238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F238F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F238F#FFFFFF#000000##FFFFFF
##5F238F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#563D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f238f;
/* rgb */ color: rgb(95, 35, 143);
/* oklch */ color: oklch(40.4% 0.168 305.2);
Tailwind
colors: {
  custom: {
    50: '#9164b1',
    500: '#5f238f',
    950: '#000000',
  },
}
SCSS
$custom: #5f238f;
$custom-light: #9164b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f238f",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 273.333,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40393,
    "c": 0.16827,
    "h": 305.2
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#5F238F
secondary
#81BA54
accent
#E4448B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F238F

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

Preview Lab → · Contrast checker → · Palette generator →

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