#5F229E#5F229E

#5F229E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.185 H 300.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5F229E
RGBrgb(95, 34, 158)
HSLhsl(270, 65%, 38%)
HSVhsv(270, 78%, 62%)
CMYKcmyk(39.9%, 78.5%, 0%, 38%)
CIE-LABlab(29.53, 50.79, -55.72)
CIE-LCHlch(29.53, 75.39, 312.35°)
OKLaboklab(41.55% 0.0944 -0.1592)
OKLCHoklch(41.55% 0.185 300.7)
XYZxyz(11.4614, 6.0455, 32.9042)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F229E #619E22
analogous
#22239E #5F229E #9D229E
triadic
#5F229E #9E5F22 #229E5F
tetradic
#5F229E #9E2223 #619E22 #229E9D
square
#5F229E #9E2223 #619E22 #229E9D
split-complementary
#5F229E #9E9D22 #239E22
monochromatic
#220C39 #41176C #5F229E #7D2DD0 #9C5EDC

Accessibility & contrast

On white

9.51
#5F229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F229E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F229E#FFFFFF#000000##FFFFFF
##5F229E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#51435F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f229e;
/* rgb */ color: rgb(95, 34, 158);
/* oklch */ color: oklch(41.6% 0.185 300.7);
Tailwind
colors: {
  custom: {
    50: '#9364bc',
    500: '#5f229e',
    950: '#000000',
  },
}
SCSS
$custom: #5f229e;
$custom-light: #9364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f229e",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 269.516,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41554,
    "c": 0.18507,
    "h": 300.7
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#5F229E
secondary
#8FC15B
accent
#E84095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F229E

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

Preview Lab → · Contrast checker → · Palette generator →

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