#5A338F#5A338F

#5A338F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.146 H 299.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5A338F
RGBrgb(90, 51, 143)
HSLhsl(265, 47%, 38%)
HSVhsv(265, 64%, 56%)
CMYKcmyk(37.1%, 64.3%, 0%, 43.9%)
CIE-LABlab(30.70, 37.53, -44.66)
CIE-LCHlch(30.70, 58.34, 310.04°)
OKLaboklab(41.88% 0.072 -0.127)
OKLCHoklch(41.88% 0.146 299.6)
XYZxyz(10.3570, 6.5244, 26.6950)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A338F #688F33
analogous
#333A8F #5A338F #88338F
triadic
#5A338F #8F5A33 #338F5A
tetradic
#5A338F #8F333A #688F33 #338F88
square
#5A338F #8F333A #688F33 #338F88
split-complementary
#5A338F #8F8833 #3A8F33
monochromatic
#211335 #3E2362 #5A338F #7643BC #9770CC

Accessibility & contrast

On white

9.11
#5A338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A338F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A338F#FFFFFF#000000##FFFFFF
##5A338F1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#0B488D
Tritanopia (blue-blind)
#4E475C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a338f;
/* rgb */ color: rgb(90, 51, 143);
/* oklch */ color: oklch(41.9% 0.146 299.6);
Tailwind
colors: {
  custom: {
    50: '#8d6db0',
    500: '#5a338f',
    950: '#000000',
  },
}
SCSS
$custom: #5a338f;
$custom-light: #8d6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a338f",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 265.435,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41876,
    "c": 0.14596,
    "h": 299.6
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#5A338F
secondary
#95B46A
accent
#D7519E
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #5A338F

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

Preview Lab → · Contrast checker → · Palette generator →

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