#5F2F94#5F2F94

#5F2F94 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.159 H 301.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5F2F94
RGBrgb(95, 47, 148)
HSLhsl(269, 52%, 38%)
HSVhsv(269, 68%, 58%)
CMYKcmyk(35.8%, 68.2%, 0%, 42%)
CIE-LABlab(30.89, 42.15, -47.40)
CIE-LCHlch(30.89, 63.43, 311.65°)
OKLaboklab(42.27% 0.0834 -0.1348)
OKLCHoklch(42.27% 0.159 301.7)
XYZxyz(11.0799, 6.6040, 28.7022)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F94 #64942F
analogous
#2F3194 #5F2F94 #912F94
triadic
#5F2F94 #945F2F #2F945F
tetradic
#5F2F94 #942F31 #64942F #2F9491
square
#5F2F94 #942F31 #64942F #2F9491
split-complementary
#5F2F94 #94912F #31942F
monochromatic
#231137 #412066 #5F2F94 #7D3EC2 #9C6DD1

Accessibility & contrast

On white

9.05
#5F2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F94
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F94#FFFFFF#000000##FFFFFF
##5F2F941.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#54465D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2f94;
/* rgb */ color: rgb(95, 47, 148);
/* oklch */ color: oklch(42.3% 0.159 301.7);
Tailwind
colors: {
  custom: {
    50: '#916bb4',
    500: '#5f2f94',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f94;
$custom-light: #916bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f94",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 268.515,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42267,
    "c": 0.15854,
    "h": 301.7
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#5F2F94
secondary
#91B867
accent
#DB4D97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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