#5F238C#5F238C

#5F238C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.165 H 306.3°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5F238C
RGBrgb(95, 35, 140)
HSLhsl(274, 60%, 34%)
HSVhsv(274, 75%, 55%)
CMYKcmyk(32.1%, 75%, 0%, 45.1%)
CIE-LABlab(28.19, 45.98, -46.84)
CIE-LCHlch(28.19, 65.64, 314.47°)
OKLaboklab(40.15% 0.0977 -0.1331)
OKLCHoklch(40.15% 0.165 306.3)
XYZxyz(10.0529, 5.5285, 25.3434)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F238C #508C23
analogous
#2B238C #5F238C #8C2385
triadic
#5F238C #8C5F23 #238C5F
tetradic
#5F238C #8C2B23 #508C23 #23858C
square
#5F238C #8C2B23 #508C23 #23858C
split-complementary
#5F238C #858C23 #238C2B
monochromatic
#1D0B2A #3E175B #5F238C #802FBD #9E55D4

Accessibility & contrast

On white

9.97
#5F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F238C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F238C#FFFFFF#000000##FFFFFF
##5F238C1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#573C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f238c;
/* rgb */ color: rgb(95, 35, 140);
/* oklch */ color: oklch(40.2% 0.165 306.3);
Tailwind
colors: {
  custom: {
    50: '#9164ae',
    500: '#5f238c',
    950: '#000000',
  },
}
SCSS
$custom: #5f238c;
$custom-light: #9164ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f238c",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 274.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40151,
    "c": 0.1651,
    "h": 306.3
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#5F238C
secondary
#7EB852
accent
#E34589
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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