#5F2F8A#5F2F8A

#5F2F8A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.147 H 305.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5F2F8A
RGBrgb(95, 47, 138)
HSLhsl(272, 49%, 36%)
HSVhsv(272, 66%, 54%)
CMYKcmyk(31.2%, 65.9%, 0%, 45.9%)
CIE-LABlab(30.16, 39.59, -42.41)
CIE-LCHlch(30.16, 58.02, 313.03°)
OKLaboklab(41.51% 0.0844 -0.1202)
OKLCHoklch(41.51% 0.147 305.1)
XYZxyz(10.3223, 6.3010, 24.7122)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F8A #5A8A2F
analogous
#322F8A #5F2F8A #8A2F88
triadic
#5F2F8A #8A5F2F #2F8A5F
tetradic
#5F2F8A #8A322F #5A8A2F #2F888A
square
#5F2F8A #8A322F #5A8A2F #2F888A
split-complementary
#5F2F8A #888A2F #2F8A32
monochromatic
#20102F #401F5C #5F2F8A #7E3FB8 #9C68CC

Accessibility & contrast

On white

9.29
#5F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F8A
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F8A#FFFFFF#000000##FFFFFF
##5F2F8A1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#174788
Tritanopia (blue-blind)
#574258
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2f8a;
/* rgb */ color: rgb(95, 47, 138);
/* oklch */ color: oklch(41.5% 0.147 305.1);
Tailwind
colors: {
  custom: {
    50: '#906bad',
    500: '#5f2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f8a;
$custom-light: #906bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f8a",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 271.648,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41511,
    "c": 0.14686,
    "h": 305.1
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#5F2F8A
secondary
#88B362
accent
#D94F90
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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