#5A238F#5A238F

#5A238F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.167 H 302.5°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5A238F
RGBrgb(90, 35, 143)
HSLhsl(271, 61%, 35%)
HSVhsv(271, 76%, 56%)
CMYKcmyk(37.1%, 75.5%, 0%, 43.9%)
CIE-LABlab(27.73, 45.75, -49.47)
CIE-LCHlch(27.73, 67.38, 312.76°)
OKLaboklab(39.75% 0.0897 -0.141)
OKLCHoklch(39.75% 0.167 302.5)
XYZxyz(9.7742, 5.3589, 26.5007)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A238F #588F23
analogous
#24238F #5A238F #8F238E
triadic
#5A238F #8F5A23 #238F5A
tetradic
#5A238F #8F2423 #588F23 #238E8F
square
#5A238F #8F2423 #588F23 #238E8F
split-complementary
#5A238F #8E8F23 #238F24
monochromatic
#1C0B2D #3B175E #5A238F #792FC0 #9757D6

Accessibility & contrast

On white

10.14
#5A238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A238F
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A238F#FFFFFF#000000##FFFFFF
##5A238F1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#4F3E57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a238f;
/* rgb */ color: rgb(90, 35, 143);
/* oklch */ color: oklch(39.8% 0.167 302.5);
Tailwind
colors: {
  custom: {
    50: '#8e64b1',
    500: '#5a238f',
    950: '#000000',
  },
}
SCSS
$custom: #5a238f;
$custom-light: #8e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a238f",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 270.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39754,
    "c": 0.16716,
    "h": 302.5
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#5A238F
secondary
#86BA54
accent
#E44492
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A238F

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

Preview Lab → · Contrast checker → · Palette generator →

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