#5F2E95#5F2E95

#5F2E95 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.161 H 301.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5F2E95
RGBrgb(95, 46, 149)
HSLhsl(269, 53%, 38%)
HSVhsv(269, 69%, 58%)
CMYKcmyk(36.2%, 69.1%, 0%, 41.6%)
CIE-LABlab(30.78, 42.92, -48.19)
CIE-LCHlch(30.78, 64.53, 311.69°)
OKLaboklab(42.21% 0.0844 -0.1371)
OKLCHoklch(42.21% 0.161 301.6)
XYZxyz(11.1198, 6.5568, 29.1077)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E95 #64952E
analogous
#2E3095 #5F2E95 #922E95
triadic
#5F2E95 #955F2E #2E955F
tetradic
#5F2E95 #952E30 #64952E #2E9592
square
#5F2E95 #952E30 #64952E #2E9592
split-complementary
#5F2E95 #95922E #30952E
monochromatic
#231137 #412066 #5F2E95 #7D3DC3 #9C6CD2

Accessibility & contrast

On white

9.09
#5F2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E95
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E95#FFFFFF#000000##FFFFFF
##5F2E951.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#54465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2e95;
/* rgb */ color: rgb(95, 46, 149);
/* oklch */ color: oklch(42.2% 0.161 301.6);
Tailwind
colors: {
  custom: {
    50: '#916ab5',
    500: '#5f2e95',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e95;
$custom-light: #916ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e95",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 268.544,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4221,
    "c": 0.16105,
    "h": 301.6
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#5F2E95
secondary
#91B966
accent
#DC4C97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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