#5938C8#5938C8

#5938C8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.209 H 285.8°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5938C8
RGBrgb(89, 56, 200)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 72%, 78%)
CMYKcmyk(55.5%, 72%, 0%, 21.6%)
CIE-LABlab(36.22, 50.75, -69.78)
CIE-LCHlch(36.22, 86.29, 306.03°)
OKLaboklab(47.25% 0.0567 -0.2008)
OKLCHoklch(47.25% 0.209 285.8)
XYZxyz(15.9562, 9.1214, 55.5522)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938C8 #A7C838
analogous
#385FC8 #5938C8 #A138C8
triadic
#5938C8 #C85938 #38C859
tetradic
#5938C8 #C8385F #A7C838 #38C8A1
square
#5938C8 #C8385F #A7C838 #38C8A1
split-complementary
#5938C8 #C8A138 #5FC838
monochromatic
#2E1D69 #432A99 #5938C8 #8168D5 #A998E3

Accessibility & contrast

On white

7.44
#5938C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5938C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938C8
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938C8#FFFFFF#000000##FFFFFF
##5938C81.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#265F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5938c8;
/* rgb */ color: rgb(89, 56, 200);
/* oklch */ color: oklch(47.2% 0.209 285.8);
Tailwind
colors: {
  custom: {
    50: '#9372da',
    500: '#5938c8',
    950: '#000000',
  },
}
SCSS
$custom: #5938c8;
$custom-light: #9372da;
$custom-dark: #000000;
JSON
{
  "hex": "#5938c8",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 253.75,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47248,
    "c": 0.20865,
    "h": 285.8
  },
  "luminance": 0.09122
}

Semantic roles & 50–950 ramp

primary
#5938C8
secondary
#BFCE8E
accent
#E048BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5938C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5938C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva