#5838CD#5838CD

#5838CD is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.215 H 284.6°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5838CD
RGBrgb(88, 56, 205)
HSLhsl(253, 60%, 51%)
HSVhsv(253, 73%, 80%)
CMYKcmyk(57.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.57, 52.06, -72.11)
CIE-LCHlch(36.57, 88.94, 305.83°)
OKLaboklab(47.62% 0.0542 -0.2076)
OKLCHoklch(47.62% 0.215 284.6)
XYZxyz(16.4548, 9.3098, 58.6757)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838CD #ADCD38
analogous
#3862CD #5838CD #A238CD
triadic
#5838CD #CD5838 #38CD58
tetradic
#5838CD #CD3862 #ADCD38 #38CDA2
square
#5838CD #CD3862 #ADCD38 #38CDA2
split-complementary
#5838CD #CDA238 #62CD38
monochromatic
#2E1C6F #4228A0 #5838CD #8169D9 #AA9AE6

Accessibility & contrast

On white

7.34
#5838CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5838CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838CD
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838CD#FFFFFF#000000##FFFFFF
##5838CD1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#1A617F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5838cd;
/* rgb */ color: rgb(88, 56, 205);
/* oklch */ color: oklch(47.6% 0.215 284.6);
Tailwind
colors: {
  custom: {
    50: '#9372dd',
    500: '#5838cd',
    950: '#000000',
  },
}
SCSS
$custom: #5838cd;
$custom-light: #9372dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5838cd",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 252.886,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.21459,
    "h": 284.6
  },
  "luminance": 0.09311
}

Semantic roles & 50–950 ramp

primary
#5838CD
secondary
#C3D18F
accent
#E345C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5838CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5838CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva