#5A268F#5A268F

#5A268F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.164 H 302.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5A268F
RGBrgb(90, 38, 143)
HSLhsl(270, 58%, 35%)
HSVhsv(270, 73%, 56%)
CMYKcmyk(37.1%, 73.4%, 0%, 43.9%)
CIE-LABlab(28.23, 44.34, -48.66)
CIE-LCHlch(28.23, 65.84, 312.34°)
OKLaboklab(40.11% 0.0867 -0.1387)
OKLCHoklch(40.11% 0.164 302)
XYZxyz(9.8663, 5.5430, 26.5314)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A268F #5B8F26
analogous
#26278F #5A268F #8E268F
triadic
#5A268F #8F5A26 #268F5A
tetradic
#5A268F #8F2627 #5B8F26 #268F8E
square
#5A268F #8F2627 #5B8F26 #268F8E
split-complementary
#5A268F #8F8E26 #278F26
monochromatic
#1D0C2E #3C195F #5A268F #7833BF #975CD4

Accessibility & contrast

On white

9.96
#5A268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A268F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A268F#FFFFFF#000000##FFFFFF
##5A268F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#4F4058
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a268f;
/* rgb */ color: rgb(90, 38, 143);
/* oklch */ color: oklch(40.1% 0.164 302.0);
Tailwind
colors: {
  custom: {
    50: '#8e65b1',
    500: '#5a268f',
    950: '#000000',
  },
}
SCSS
$custom: #5a268f;
$custom-light: #8e65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a268f",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 269.714,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40105,
    "c": 0.16357,
    "h": 302
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#5A268F
secondary
#89B958
accent
#E14795
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A268F

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

Preview Lab → · Contrast checker → · Palette generator →

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