#5E258F#5E258F

#5E258F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.166 H 304.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5E258F
RGBrgb(94, 37, 143)
HSLhsl(272, 59%, 35%)
HSVhsv(272, 74%, 56%)
CMYKcmyk(34.3%, 74.1%, 0%, 43.9%)
CIE-LABlab(28.61, 45.61, -48.03)
CIE-LCHlch(28.61, 66.23, 313.52°)
OKLaboklab(40.49% 0.0936 -0.1366)
OKLCHoklch(40.49% 0.166 304.4)
XYZxyz(10.2345, 5.6860, 26.5396)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E258F #568F25
analogous
#29258F #5E258F #8F258B
triadic
#5E258F #8F5E25 #258F5E
tetradic
#5E258F #8F2925 #568F25 #258B8F
square
#5E258F #8F2925 #568F25 #258B8F
split-complementary
#5E258F #8B8F25 #258F29
monochromatic
#1E0C2E #3E185E #5E258F #7E32C0 #9C5AD4

Accessibility & contrast

On white

9.83
#5E258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E258F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E258F#FFFFFF#000000##FFFFFF
##5E258F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#553F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e258f;
/* rgb */ color: rgb(94, 37, 143);
/* oklch */ color: oklch(40.5% 0.166 304.4);
Tailwind
colors: {
  custom: {
    50: '#9065b1',
    500: '#5e258f',
    950: '#000000',
  },
}
SCSS
$custom: #5e258f;
$custom-light: #9065b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e258f",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 272.264,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4049,
    "c": 0.16564,
    "h": 304.4
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#5E258F
secondary
#84B957
accent
#E2468E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E258F

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

Preview Lab → · Contrast checker → · Palette generator →

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