#5F228D#5F228D

#5F228D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.167 H 306.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5F228D
RGBrgb(95, 34, 141)
HSLhsl(274, 61%, 34%)
HSVhsv(274, 76%, 55%)
CMYKcmyk(32.6%, 75.9%, 0%, 44.7%)
CIE-LABlab(28.11, 46.66, -47.58)
CIE-LCHlch(28.11, 66.64, 314.44°)
OKLaboklab(40.12% 0.0985 -0.1353)
OKLCHoklch(40.12% 0.167 306.1)
XYZxyz(10.0980, 5.5001, 25.7238)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F228D #508D22
analogous
#2A228D #5F228D #8D2286
triadic
#5F228D #8D5F22 #228D5F
tetradic
#5F228D #8D2A22 #508D22 #22868D
square
#5F228D #8D2A22 #508D22 #22868D
split-complementary
#5F228D #868D22 #228D2A
monochromatic
#1D0A2A #3E165C #5F228D #802EBE #9E54D6

Accessibility & contrast

On white

10.00
#5F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F228D
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F228D#FFFFFF#000000##FFFFFF
##5F228D1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#573C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f228d;
/* rgb */ color: rgb(95, 34, 141);
/* oklch */ color: oklch(40.1% 0.167 306.1);
Tailwind
colors: {
  custom: {
    50: '#9164af',
    500: '#5f228d',
    950: '#000000',
  },
}
SCSS
$custom: #5f228d;
$custom-light: #9164af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f228d",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 274.206,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.16734,
    "h": 306.1
  },
  "luminance": 0.055
}

Semantic roles & 50–950 ramp

primary
#5F228D
secondary
#7EB951
accent
#E44489
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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