#5A235E#5A235E

#5A235E is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.2% C 0.115 H 324.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5A235E
RGBrgb(90, 35, 94)
HSLhsl(296, 46%, 25%)
HSVhsv(296, 63%, 37%)
CMYKcmyk(4.3%, 62.8%, 0%, 63.1%)
CIE-LABlab(24.27, 34.37, -23.81)
CIE-LCHlch(24.27, 41.81, 325.28°)
OKLaboklab(36.17% 0.0938 -0.0659)
OKLCHoklch(36.17% 0.115 324.9)
XYZxyz(6.8377, 4.1843, 11.0350)
Luminance0.0418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A235E #275E23
analogous
#3C235E #5A235E #5E2344
triadic
#5A235E #5E5A23 #235E5A
tetradic
#5A235E #5E3C23 #275E23 #23445E
square
#5A235E #5E3C23 #275E23 #23445E
split-complementary
#5A235E #445E23 #235E3C
monochromatic
#150816 #2F1231 #5A235E #85348B #AF44B7

Accessibility & contrast

On white

11.43
#5A235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A235E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A235E#FFFFFF#000000##FFFFFF
##5A235E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3560
Deuteranopia (green-blind)
#2D3C5C
Tritanopia (blue-blind)
#5C2B3D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a235e;
/* rgb */ color: rgb(90, 35, 94);
/* oklch */ color: oklch(36.2% 0.115 324.9);
Tailwind
colors: {
  custom: {
    50: '#8b628c',
    500: '#5a235e',
    950: '#000000',
  },
}
SCSS
$custom: #5a235e;
$custom-light: #8b628c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a235e",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 295.932,
    "s": 45.736,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36172,
    "c": 0.11463,
    "h": 324.9
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#5A235E
secondary
#50924B
accent
#D5525B
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #5A235E

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

Preview Lab → · Contrast checker → · Palette generator →

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