#5F279C#5F279C

#5F279C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.178 H 300.6°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5F279C
RGBrgb(95, 39, 156)
HSLhsl(269, 60%, 38%)
HSVhsv(269, 75%, 61%)
CMYKcmyk(39.1%, 75%, 0%, 38.8%)
CIE-LABlab(30.12, 48.11, -53.54)
CIE-LCHlch(30.12, 71.98, 311.95°)
OKLaboklab(41.92% 0.0904 -0.1528)
OKLCHoklch(41.92% 0.178 300.6)
XYZxyz(11.4441, 6.2841, 32.0561)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F279C #649C27
analogous
#27299C #5F279C #99279C
triadic
#5F279C #9C5F27 #279C5F
tetradic
#5F279C #9C2729 #649C27 #279C99
square
#5F279C #9C2729 #649C27 #279C99
split-complementary
#5F279C #9C9927 #299C27
monochromatic
#230F3A #411B6B #5F279C #7D34CC #9C65D8

Accessibility & contrast

On white

9.31
#5F279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F279C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F279C#FFFFFF#000000##FFFFFF
##5F279C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#51455F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f279c;
/* rgb */ color: rgb(95, 39, 156);
/* oklch */ color: oklch(41.9% 0.178 300.6);
Tailwind
colors: {
  custom: {
    50: '#9267ba',
    500: '#5f279c',
    950: '#000000',
  },
}
SCSS
$custom: #5f279c;
$custom-light: #9267ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f279c",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 268.718,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41917,
    "c": 0.17755,
    "h": 300.6
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F279C

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

Preview Lab → · Contrast checker → · Palette generator →

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