#5F269B#5F269B

#5F269B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.178 H 301.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5F269B
RGBrgb(95, 38, 155)
HSLhsl(269, 61%, 38%)
HSVhsv(269, 75%, 61%)
CMYKcmyk(38.7%, 75.5%, 0%, 39.2%)
CIE-LABlab(29.88, 48.31, -53.32)
CIE-LCHlch(29.88, 71.95, 312.18°)
OKLaboklab(41.72% 0.0916 -0.1522)
OKLCHoklch(41.72% 0.178 301)
XYZxyz(11.3274, 6.1856, 31.6012)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F269B #629B26
analogous
#26279B #5F269B #9A269B
triadic
#5F269B #9B5F26 #269B5F
tetradic
#5F269B #9B2627 #629B26 #269B9A
square
#5F269B #9B2627 #629B26 #269B9A
split-complementary
#5F269B #9B9A26 #279B26
monochromatic
#230E39 #411A6A #5F269B #7D32CC #9C63D9

Accessibility & contrast

On white

9.39
#5F269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F269B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F269B#FFFFFF#000000##FFFFFF
##5F269B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f269b;
/* rgb */ color: rgb(95, 38, 155);
/* oklch */ color: oklch(41.7% 0.178 301.0);
Tailwind
colors: {
  custom: {
    50: '#9266b9',
    500: '#5f269b',
    950: '#000000',
  },
}
SCSS
$custom: #5f269b;
$custom-light: #9266b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f269b",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 269.231,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4172,
    "c": 0.17761,
    "h": 301
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#5F269B
secondary
#90BE5F
accent
#E44496
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F269B

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

Preview Lab → · Contrast checker → · Palette generator →

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