#5A258F#5A258F

#5A258F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.165 H 302.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5A258F
RGBrgb(90, 37, 143)
HSLhsl(270, 59%, 35%)
HSVhsv(270, 74%, 56%)
CMYKcmyk(37.1%, 74.1%, 0%, 43.9%)
CIE-LABlab(28.06, 44.82, -48.94)
CIE-LCHlch(28.06, 66.36, 312.49°)
OKLaboklab(39.99% 0.0878 -0.1395)
OKLCHoklch(39.99% 0.165 302.2)
XYZxyz(9.8348, 5.4799, 26.5209)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A258F #5A8F25
analogous
#25258F #5A258F #8F258F
triadic
#5A258F #8F5A25 #258F5A
tetradic
#5A258F #8F2525 #5A8F25 #258F8F
square
#5A258F #8F2525 #5A8F25 #258F8F
split-complementary
#5A258F #8F8F25 #258F25
monochromatic
#1D0C2E #3B185E #5A258F #7932C0 #975AD4

Accessibility & contrast

On white

10.02
#5A258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A258F
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A258F#FFFFFF#000000##FFFFFF
##5A258F1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#4F3F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a258f;
/* rgb */ color: rgb(90, 37, 143);
/* oklch */ color: oklch(40.0% 0.165 302.2);
Tailwind
colors: {
  custom: {
    50: '#8e65b1',
    500: '#5a258f',
    950: '#000000',
  },
}
SCSS
$custom: #5a258f;
$custom-light: #8e65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a258f",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 270,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39985,
    "c": 0.16479,
    "h": 302.2
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#5A258F
secondary
#88B957
accent
#E24694
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A258F

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

Preview Lab → · Contrast checker → · Palette generator →

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