#5F26A5#5F26A5

#5F26A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.188 H 298.2°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5F26A5
RGBrgb(95, 38, 165)
HSLhsl(267, 63%, 40%)
HSVhsv(267, 77%, 65%)
CMYKcmyk(42.4%, 77%, 0%, 35.3%)
CIE-LABlab(30.73, 50.83, -58.00)
CIE-LCHlch(30.73, 77.12, 311.23°)
OKLaboklab(42.58% 0.0891 -0.1659)
OKLCHoklch(42.58% 0.188 298.2)
XYZxyz(12.2022, 6.5355, 36.2086)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26A5 #6CA526
analogous
#262CA5 #5F26A5 #9F26A5
triadic
#5F26A5 #A55F26 #26A55F
tetradic
#5F26A5 #A5262C #6CA526 #26A59F
square
#5F26A5 #A5262C #6CA526 #26A59F
split-complementary
#5F26A5 #A59F26 #2CA526
monochromatic
#260F42 #421B73 #5F26A5 #7C37D1 #9D69DC

Accessibility & contrast

On white

9.10
#5F26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F26A5
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26A5#FFFFFF#000000##FFFFFF
##5F26A51.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#4D4864
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f26a5;
/* rgb */ color: rgb(95, 38, 165);
/* oklch */ color: oklch(42.6% 0.188 298.2);
Tailwind
colors: {
  custom: {
    50: '#9367c1',
    500: '#5f26a5',
    950: '#000000',
  },
}
SCSS
$custom: #5f26a5;
$custom-light: #9367c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26a5",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 266.929,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.18833,
    "h": 298.2
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#5F26A5
secondary
#98C364
accent
#E6429C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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