#5838DB#5838DB

#5838DB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.231 H 282.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5838DB
RGBrgb(88, 56, 219)
HSLhsl(252, 69%, 54%)
HSVhsv(252, 74%, 86%)
CMYKcmyk(59.8%, 74.4%, 0%, 14.1%)
CIE-LABlab(37.87, 56.10, -78.05)
CIE-LCHlch(37.87, 96.12, 305.70°)
OKLaboklab(48.92% 0.0509 -0.225)
OKLCHoklch(48.92% 0.231 282.8)
XYZxyz(18.2209, 10.0163, 67.9773)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838DB #BBDB38
analogous
#386ADB #5838DB #AA38DB
triadic
#5838DB #DB5838 #38DB58
tetradic
#5838DB #DB386A #BBDB38 #38DBAA
square
#5838DB #DB386A #BBDB38 #38DBAA
split-complementary
#5838DB #DBAA38 #6ADB38
monochromatic
#2C1781 #3E21B5 #5838DB #836CE4 #AFA0EE

Accessibility & contrast

On white

6.99
#5838DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5838DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5838DB
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838DB#FFFFFF#000000##FFFFFF
##5838DB1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5838db;
/* rgb */ color: rgb(88, 56, 219);
/* oklch */ color: oklch(48.9% 0.231 282.8);
Tailwind
colors: {
  custom: {
    50: '#9673e7',
    500: '#5838db',
    950: '#000000',
  },
}
SCSS
$custom: #5838db;
$custom-light: #9673e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5838db",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 251.779,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48923,
    "c": 0.23072,
    "h": 282.8
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#5838DB
secondary
#CDDA95
accent
#EC3CCA
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5838DB

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

Preview Lab → · Contrast checker → · Palette generator →

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