#5F26A6#5F26A6

#5F26A6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.189 H 298.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5F26A6
RGBrgb(95, 38, 166)
HSLhsl(267, 63%, 40%)
HSVhsv(267, 77%, 65%)
CMYKcmyk(42.8%, 77.1%, 0%, 34.9%)
CIE-LABlab(30.81, 51.09, -58.46)
CIE-LCHlch(30.81, 77.64, 311.15°)
OKLaboklab(42.67% 0.0888 -0.1673)
OKLCHoklch(42.67% 0.189 298)
XYZxyz(12.2936, 6.5721, 36.6898)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26A6 #6DA626
analogous
#262DA6 #5F26A6 #9F26A6
triadic
#5F26A6 #A65F26 #26A65F
tetradic
#5F26A6 #A6262D #6DA626 #26A69F
square
#5F26A6 #A6262D #6DA626 #26A69F
split-complementary
#5F26A6 #A69F26 #2DA626
monochromatic
#260F42 #431B74 #5F26A6 #7C38D1 #9D6ADD

Accessibility & contrast

On white

9.07
#5F26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F26A6
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26A6#FFFFFF#000000##FFFFFF
##5F26A61.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#4D4865
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f26a6;
/* rgb */ color: rgb(95, 38, 166);
/* oklch */ color: oklch(42.7% 0.189 298.0);
Tailwind
colors: {
  custom: {
    50: '#9367c1',
    500: '#5f26a6',
    950: '#000000',
  },
}
SCSS
$custom: #5f26a6;
$custom-light: #9367c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26a6",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 266.719,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.42668,
    "c": 0.1894,
    "h": 298
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#5F26A6
secondary
#99C365
accent
#E6429D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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