#5F26A7#5F26A7

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

Color values

HEX#5F26A7
RGBrgb(95, 38, 167)
HSLhsl(267, 63%, 40%)
HSVhsv(267, 77%, 65%)
CMYKcmyk(43.1%, 77.2%, 0%, 34.5%)
CIE-LABlab(30.90, 51.34, -58.92)
CIE-LCHlch(30.90, 78.15, 311.07°)
OKLaboklab(42.76% 0.0885 -0.1686)
OKLCHoklch(42.76% 0.19 297.7)
XYZxyz(12.3857, 6.6089, 37.1748)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26A7 #6EA726
analogous
#262DA7 #5F26A7 #A026A7
triadic
#5F26A7 #A75F26 #26A75F
tetradic
#5F26A7 #A7262D #6EA726 #26A7A0
square
#5F26A7 #A7262D #6EA726 #26A7A0
split-complementary
#5F26A7 #A7A026 #2DA726
monochromatic
#260F43 #431B75 #5F26A7 #7C38D2 #9D6ADD

Accessibility & contrast

On white

9.04
#5F26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F26A7
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26A7#FFFFFF#000000##FFFFFF
##5F26A71.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#4C4965
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f26a7;
/* rgb */ color: rgb(95, 38, 167);
/* oklch */ color: oklch(42.8% 0.190 297.7);
Tailwind
colors: {
  custom: {
    50: '#9367c2',
    500: '#5f26a7',
    950: '#000000',
  },
}
SCSS
$custom: #5f26a7;
$custom-light: #9367c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26a7",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 266.512,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42756,
    "c": 0.19047,
    "h": 297.7
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#5F26A7
secondary
#9AC365
accent
#E6429D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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