#5F268F#5F268F

#5F268F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.165 H 304.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5F268F
RGBrgb(95, 38, 143)
HSLhsl(273, 58%, 35%)
HSVhsv(273, 73%, 56%)
CMYKcmyk(33.6%, 73.4%, 0%, 43.9%)
CIE-LABlab(28.91, 45.34, -47.53)
CIE-LCHlch(28.91, 65.69, 313.65°)
OKLaboklab(40.73% 0.094 -0.1352)
OKLCHoklch(40.73% 0.165 304.8)
XYZxyz(10.3692, 5.8023, 26.5550)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F268F #568F26
analogous
#2A268F #5F268F #8F268A
triadic
#5F268F #8F5F26 #268F5F
tetradic
#5F268F #8F2A26 #568F26 #268A8F
square
#5F268F #8F2A26 #568F26 #268A8F
split-complementary
#5F268F #8A8F26 #268F2A
monochromatic
#1F0C2E #3F195F #5F268F #7F33BF #9D5CD4

Accessibility & contrast

On white

9.72
#5F268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F268F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F268F#FFFFFF#000000##FFFFFF
##5F268F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#563F58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f268f;
/* rgb */ color: rgb(95, 38, 143);
/* oklch */ color: oklch(40.7% 0.165 304.8);
Tailwind
colors: {
  custom: {
    50: '#9166b1',
    500: '#5f268f',
    950: '#000000',
  },
}
SCSS
$custom: #5f268f;
$custom-light: #9166b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f268f",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 272.571,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.16466,
    "h": 304.8
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#5F268F
secondary
#84B958
accent
#E1478D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F268F

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

Preview Lab → · Contrast checker → · Palette generator →

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