#5F279F#5F279F

#5F279F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.181 H 299.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5F279F
RGBrgb(95, 39, 159)
HSLhsl(268, 61%, 39%)
HSVhsv(268, 75%, 62%)
CMYKcmyk(40.3%, 75.5%, 0%, 37.6%)
CIE-LABlab(30.37, 48.87, -54.95)
CIE-LCHlch(30.37, 73.54, 311.65°)
OKLaboklab(42.17% 0.0897 -0.157)
OKLCHoklch(42.17% 0.181 299.7)
XYZxyz(11.7013, 6.3870, 33.4105)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F279F #679F27
analogous
#272B9F #5F279F #9B279F
triadic
#5F279F #9F5F27 #279F5F
tetradic
#5F279F #9F272B #679F27 #279F9B
square
#5F279F #9F272B #679F27 #279F9B
split-complementary
#5F279F #9F9B27 #2B9F27
monochromatic
#240F3D #421B6E #5F279F #7D36CE #9C67DA

Accessibility & contrast

On white

9.22
#5F279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F279F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F279F#FFFFFF#000000##FFFFFF
##5F279F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#504661
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f279f;
/* rgb */ color: rgb(95, 39, 159);
/* oklch */ color: oklch(42.2% 0.181 299.7);
Tailwind
colors: {
  custom: {
    50: '#9267bc',
    500: '#5f279f',
    950: '#000000',
  },
}
SCSS
$custom: #5f279f;
$custom-light: #9267bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f279f",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 268,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42171,
    "c": 0.1808,
    "h": 299.7
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#5F279F
secondary
#94C062
accent
#E44499
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F279F

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

Preview Lab → · Contrast checker → · Palette generator →

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