#5A237F#5A237F

#5A237F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.150 H 308.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5A237F
RGBrgb(90, 35, 127)
HSLhsl(276, 57%, 32%)
HSVhsv(276, 72%, 50%)
CMYKcmyk(29.1%, 72.4%, 0%, 50.2%)
CIE-LABlab(26.47, 41.81, -41.53)
CIE-LCHlch(26.47, 58.93, 315.20°)
OKLaboklab(38.46% 0.0927 -0.1177)
OKLCHoklch(38.46% 0.15 308.2)
XYZxyz(8.6475, 4.9082, 20.5664)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A237F #487F23
analogous
#2C237F #5A237F #7F2376
triadic
#5A237F #7F5A23 #237F5A
tetradic
#5A237F #7F2C23 #487F23 #23767F
square
#5A237F #7F2C23 #487F23 #23767F
split-complementary
#5A237F #767F23 #237F2C
monochromatic
#16091F #38164F #5A237F #7C30AF #9B4ECE

Accessibility & contrast

On white

10.60
#5A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5A237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A237F
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A237F#FFFFFF#000000##FFFFFF
##5A237F1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#0C3F7D
Tritanopia (blue-blind)
#54384E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a237f;
/* rgb */ color: rgb(90, 35, 127);
/* oklch */ color: oklch(38.5% 0.150 308.2);
Tailwind
colors: {
  custom: {
    50: '#8c63a5',
    500: '#5a237f',
    950: '#000000',
  },
}
SCSS
$custom: #5a237f;
$custom-light: #8c63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a237f",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 275.87,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38462,
    "c": 0.14979,
    "h": 308.2
  },
  "luminance": 0.04908
}

Semantic roles & 50–950 ramp

primary
#5A237F
secondary
#75B14C
accent
#E04885
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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