#5F238E#5F238E

#5F238E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.167 H 305.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5F238E
RGBrgb(95, 35, 142)
HSLhsl(274, 60%, 35%)
HSVhsv(274, 75%, 56%)
CMYKcmyk(33.1%, 75.4%, 0%, 44.3%)
CIE-LABlab(28.35, 46.46, -47.82)
CIE-LCHlch(28.35, 66.67, 314.18°)
OKLaboklab(40.31% 0.0973 -0.136)
OKLCHoklch(40.31% 0.167 305.6)
XYZxyz(10.2017, 5.5880, 26.1271)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F238E #528E23
analogous
#2A238E #5F238E #8E2388
triadic
#5F238E #8E5F23 #238E5F
tetradic
#5F238E #8E2A23 #528E23 #23888E
square
#5F238E #8E2A23 #528E23 #23888E
split-complementary
#5F238E #888E23 #238E2A
monochromatic
#1D0B2C #3E175D #5F238E #802FBF #9D56D5

Accessibility & contrast

On white

9.92
#5F238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F238E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F238E#FFFFFF#000000##FFFFFF
##5F238E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f238e;
/* rgb */ color: rgb(95, 35, 142);
/* oklch */ color: oklch(40.3% 0.167 305.6);
Tailwind
colors: {
  custom: {
    50: '#9164b0',
    500: '#5f238e',
    950: '#000000',
  },
}
SCSS
$custom: #5f238e;
$custom-light: #9164b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f238e",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 273.645,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.16721,
    "h": 305.6
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

primary
#5F238E
secondary
#80B953
accent
#E4448A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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