#5F229C#5F229C

#5F229C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.183 H 301.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5F229C
RGBrgb(95, 34, 156)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 61%)
CMYKcmyk(39.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(29.35, 50.29, -54.78)
CIE-LCHlch(29.35, 74.37, 312.56°)
OKLaboklab(41.38% 0.0949 -0.1564)
OKLCHoklch(41.38% 0.183 301.2)
XYZxyz(11.2906, 5.9772, 32.0049)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F229C #5F9C22
analogous
#22229C #5F229C #9C229C
triadic
#5F229C #9C5F22 #229C5F
tetradic
#5F229C #9C2222 #5F9C22 #229C9C
square
#5F229C #9C2222 #5F9C22 #229C9C
split-complementary
#5F229C #9C9C22 #229C22
monochromatic
#220C38 #40176A #5F229C #7E2DCE #9C5DDC

Accessibility & contrast

On white

9.57
#5F229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F229C
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F229C#FFFFFF#000000##FFFFFF
##5F229C1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#51425E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f229c;
/* rgb */ color: rgb(95, 34, 156);
/* oklch */ color: oklch(41.4% 0.183 301.2);
Tailwind
colors: {
  custom: {
    50: '#9264ba',
    500: '#5f229c',
    950: '#000000',
  },
}
SCSS
$custom: #5f229c;
$custom-light: #9264ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f229c",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 270,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4138,
    "c": 0.18299,
    "h": 301.2
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#5F229C
secondary
#8DC05A
accent
#E74194
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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