#5C2E98#5C2E98

#5C2E98 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.164 H 299.0°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5C2E98
RGBrgb(92, 46, 152)
HSLhsl(266, 54%, 39%)
HSVhsv(266, 70%, 60%)
CMYKcmyk(39.5%, 69.7%, 0%, 40.4%)
CIE-LABlab(30.63, 43.08, -50.28)
CIE-LCHlch(30.63, 66.21, 310.59°)
OKLaboklab(42.1% 0.0796 -0.1434)
OKLCHoklch(42.1% 0.164 299)
XYZxyz(11.0567, 6.4962, 30.3710)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2E98 #6A982E
analogous
#2E3598 #5C2E98 #912E98
triadic
#5C2E98 #985C2E #2E985C
tetradic
#5C2E98 #982E35 #6A982E #2E9891
square
#5C2E98 #982E35 #6A982E #2E9891
split-complementary
#5C2E98 #98912E #35982E
monochromatic
#23123A #402069 #5C2E98 #793EC5 #996DD3

Accessibility & contrast

On white

9.13
#5C2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2E98
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2E98#FFFFFF#000000##FFFFFF
##5C2E981.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#4E475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2e98;
/* rgb */ color: rgb(92, 46, 152);
/* oklch */ color: oklch(42.1% 0.164 299.0);
Tailwind
colors: {
  custom: {
    50: '#8f6ab7',
    500: '#5c2e98',
    950: '#000000',
  },
}
SCSS
$custom: #5c2e98;
$custom-light: #8f6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2e98",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 266.038,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.16403,
    "h": 299
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#5C2E98
secondary
#96BA68
accent
#DD4B9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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