#5A237D#5A237D

#5A237D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.148 H 309.0°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5A237D
RGBrgb(90, 35, 125)
HSLhsl(277, 56%, 31%)
HSVhsv(277, 72%, 49%)
CMYKcmyk(28%, 72%, 0%, 51%)
CIE-LABlab(26.32, 41.33, -40.51)
CIE-LCHlch(26.32, 57.87, 315.58°)
OKLaboklab(38.31% 0.0929 -0.1147)
OKLCHoklch(38.31% 0.148 309)
XYZxyz(8.5184, 4.8565, 19.8867)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A237D #467D23
analogous
#2D237D #5A237D #7D2373
triadic
#5A237D #7D5A23 #237D5A
tetradic
#5A237D #7D2D23 #467D23 #23737D
square
#5A237D #7D2D23 #467D23 #23737D
split-complementary
#5A237D #737D23 #237D2D
monochromatic
#15081D #38164D #5A237D #7C30AD #9B4DCD

Accessibility & contrast

On white

10.65
#5A237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5A237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A237D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A237D#FFFFFF#000000##FFFFFF
##5A237D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#103F7B
Tritanopia (blue-blind)
#55374D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a237d;
/* rgb */ color: rgb(90, 35, 125);
/* oklch */ color: oklch(38.3% 0.148 309.0);
Tailwind
colors: {
  custom: {
    50: '#8c63a3',
    500: '#5a237d',
    950: '#000000',
  },
}
SCSS
$custom: #5a237d;
$custom-light: #8c63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a237d",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 276.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.14761,
    "h": 309
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#5A237D
secondary
#73AF4C
accent
#E04883
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5A237D

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

Preview Lab → · Contrast checker → · Palette generator →

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