#5F228F#5F228F

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

Color values

HEX#5F228F
RGBrgb(95, 34, 143)
HSLhsl(274, 62%, 35%)
HSVhsv(274, 76%, 56%)
CMYKcmyk(33.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(28.27, 47.14, -48.56)
CIE-LCHlch(28.27, 67.68, 314.15°)
OKLaboklab(40.28% 0.0981 -0.1382)
OKLCHoklch(40.28% 0.169 305.4)
XYZxyz(10.2482, 5.5602, 26.5146)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F228F #528F22
analogous
#29228F #5F228F #8F2289
triadic
#5F228F #8F5F22 #228F5F
tetradic
#5F228F #8F2922 #528F22 #22898F
square
#5F228F #8F2922 #528F22 #22898F
split-complementary
#5F228F #898F22 #228F29
monochromatic
#1D0A2C #3E165E #5F228F #802EC0 #9D55D7

Accessibility & contrast

On white

9.94
#5F228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F228F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F228F#FFFFFF#000000##FFFFFF
##5F228F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.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: #5f228f;
/* rgb */ color: rgb(95, 34, 143);
/* oklch */ color: oklch(40.3% 0.169 305.4);
Tailwind
colors: {
  custom: {
    50: '#9164b1',
    500: '#5f228f',
    950: '#000000',
  },
}
SCSS
$custom: #5f228f;
$custom-light: #9164b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f228f",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 273.578,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40285,
    "c": 0.16942,
    "h": 305.4
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

primary
#5F228F
secondary
#80BA52
accent
#E5438A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F228F

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

Preview Lab → · Contrast checker → · Palette generator →

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