#5F2CA5#5F2CA5

#5F2CA5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.182 H 297.4°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA5
RGBrgb(95, 44, 165)
HSLhsl(265, 58%, 41%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(42.4%, 73.3%, 0%, 35.3%)
CIE-LABlab(31.69, 48.08, -56.42)
CIE-LCHlch(31.69, 74.13, 310.44°)
OKLaboklab(43.26% 0.0836 -0.1613)
OKLCHoklch(43.26% 0.182 297.4)
XYZxyz(12.4098, 6.9506, 36.2778)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA5 #72A52C
analogous
#2C35A5 #5F2CA5 #9B2CA5
triadic
#5F2CA5 #A55F2C #2CA55F
tetradic
#5F2CA5 #A52C35 #72A52C #2CA59B
square
#5F2CA5 #A52C35 #72A52C #2CA59B
split-complementary
#5F2CA5 #A59B2C #35A52C
monochromatic
#271244 #431F75 #5F2CA5 #7C42CD #9E72D9

Accessibility & contrast

On white

8.79
#5F2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA5
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA5#FFFFFF#000000##FFFFFF
##5F2CA51.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#4D4B66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ca5;
/* rgb */ color: rgb(95, 44, 165);
/* oklch */ color: oklch(43.3% 0.182 297.4);
Tailwind
colors: {
  custom: {
    50: '#936ac1',
    500: '#5f2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca5;
$custom-light: #936ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca5",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 265.289,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43263,
    "c": 0.18172,
    "h": 297.4
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#5F2CA5
secondary
#9DC16C
accent
#E147A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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