#5F229F#5F229F

#5F229F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.186 H 300.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5F229F
RGBrgb(95, 34, 159)
HSLhsl(269, 65%, 38%)
HSVhsv(269, 79%, 62%)
CMYKcmyk(40.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(29.61, 51.03, -56.18)
CIE-LCHlch(29.61, 75.90, 312.25°)
OKLaboklab(41.64% 0.0941 -0.1606)
OKLCHoklch(41.64% 0.186 300.4)
XYZxyz(11.5478, 6.0800, 33.3593)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F229F #629F22
analogous
#22239F #5F229F #9D229F
triadic
#5F229F #9F5F22 #229F5F
tetradic
#5F229F #9F2223 #629F22 #229F9D
square
#5F229F #9F2223 #629F22 #229F9D
split-complementary
#5F229F #9F9D22 #239F22
monochromatic
#230C3A #41176D #5F229F #7D2DD1 #9C5FDD

Accessibility & contrast

On white

9.48
#5F229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F229F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F229F#FFFFFF#000000##FFFFFF
##5F229F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#504460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f229f;
/* rgb */ color: rgb(95, 34, 159);
/* oklch */ color: oklch(41.6% 0.186 300.4);
Tailwind
colors: {
  custom: {
    50: '#9364bc',
    500: '#5f229f',
    950: '#000000',
  },
}
SCSS
$custom: #5f229f;
$custom-light: #9364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f229f",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 269.28,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41641,
    "c": 0.18611,
    "h": 300.4
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#5F229F
secondary
#90C15B
accent
#E84096
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F229F

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

Preview Lab → · Contrast checker → · Palette generator →

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