#5F279B#5F279B

#5F279B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.176 H 300.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5F279B
RGBrgb(95, 39, 155)
HSLhsl(269, 60%, 38%)
HSVhsv(269, 75%, 61%)
CMYKcmyk(38.7%, 74.8%, 0%, 39.2%)
CIE-LABlab(30.04, 47.86, -53.06)
CIE-LCHlch(30.04, 71.46, 312.05°)
OKLaboklab(41.83% 0.0906 -0.1514)
OKLCHoklch(41.83% 0.176 300.9)
XYZxyz(11.3598, 6.2504, 31.6120)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F279B #639B27
analogous
#27299B #5F279B #99279B
triadic
#5F279B #9B5F27 #279B5F
tetradic
#5F279B #9B2729 #639B27 #279B99
square
#5F279B #9B2729 #639B27 #279B99
split-complementary
#5F279B #9B9927 #299B27
monochromatic
#230E39 #411B6A #5F279B #7D33CC #9C64D8

Accessibility & contrast

On white

9.33
#5F279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F279B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F279B#FFFFFF#000000##FFFFFF
##5F279B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#52445F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f279b;
/* rgb */ color: rgb(95, 39, 155);
/* oklch */ color: oklch(41.8% 0.176 300.9);
Tailwind
colors: {
  custom: {
    50: '#9267b9',
    500: '#5f279b',
    950: '#000000',
  },
}
SCSS
$custom: #5f279b;
$custom-light: #9267b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f279b",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 268.966,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.17647,
    "h": 300.9
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#5F279B
secondary
#91BE60
accent
#E34597
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F279B

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

Preview Lab → · Contrast checker → · Palette generator →

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