#5F26A8#5F26A8

#5F26A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.192 H 297.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5F26A8
RGBrgb(95, 38, 168)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 66%)
CMYKcmyk(43.5%, 77.4%, 0%, 34.1%)
CIE-LABlab(30.99, 51.59, -59.38)
CIE-LCHlch(30.99, 78.66, 310.99°)
OKLaboklab(42.84% 0.0883 -0.17)
OKLCHoklch(42.84% 0.192 297.4)
XYZxyz(12.4785, 6.6460, 37.6636)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26A8 #6FA826
analogous
#262EA8 #5F26A8 #A026A8
triadic
#5F26A8 #A85F26 #26A85F
tetradic
#5F26A8 #A8262E #6FA826 #26A8A0
square
#5F26A8 #A8262E #6FA826 #26A8A0
split-complementary
#5F26A8 #A8A026 #2EA826
monochromatic
#270F44 #431B76 #5F26A8 #7C39D2 #9D6BDE

Accessibility & contrast

On white

9.02
#5F26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F26A8
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26A8#FFFFFF#000000##FFFFFF
##5F26A81.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#4C4966
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f26a8;
/* rgb */ color: rgb(95, 38, 168);
/* oklch */ color: oklch(42.8% 0.192 297.4);
Tailwind
colors: {
  custom: {
    50: '#9467c3',
    500: '#5f26a8',
    950: '#000000',
  },
}
SCSS
$custom: #5f26a8;
$custom-light: #9467c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26a8",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 266.308,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42844,
    "c": 0.19154,
    "h": 297.4
  },
  "luminance": 0.06646
}

Semantic roles & 50–950 ramp

primary
#5F26A8
secondary
#9BC466
accent
#E6429E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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