#5838AF#5838AF

#5838AF is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.179 H 289.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5838AF
RGBrgb(88, 56, 175)
HSLhsl(256, 52%, 45%)
HSVhsv(256, 68%, 69%)
CMYKcmyk(49.7%, 68%, 0%, 31.4%)
CIE-LABlab(33.98, 43.34, -58.72)
CIE-LCHlch(33.98, 72.98, 306.43°)
OKLaboklab(44.97% 0.0599 -0.1684)
OKLCHoklch(44.97% 0.179 289.6)
XYZxyz(13.1743, 7.9976, 41.3987)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838AF #8FAF38
analogous
#3854AF #5838AF #9338AF
triadic
#5838AF #AF5838 #38AF58
tetradic
#5838AF #AF3854 #8FAF38 #38AF93
square
#5838AF #AF3854 #8FAF38 #38AF93
split-complementary
#5838AF #AF9338 #54AF38
monochromatic
#291A52 #412981 #5838AF #785ACA #9E88D9

Accessibility & contrast

On white

8.08
#5838AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5838AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838AF
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838AF#FFFFFF#000000##FFFFFF
##5838AF1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#3A566F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5838af;
/* rgb */ color: rgb(88, 56, 175);
/* oklch */ color: oklch(45.0% 0.179 289.6);
Tailwind
colors: {
  custom: {
    50: '#8f71c8',
    500: '#5838af',
    950: '#000000',
  },
}
SCSS
$custom: #5838af;
$custom-light: #8f71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5838af",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 256.134,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44967,
    "c": 0.17871,
    "h": 289.6
  },
  "luminance": 0.07998
}

Semantic roles & 50–950 ramp

primary
#5838AF
secondary
#B1C380
accent
#DB4DB5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5838AF

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

Preview Lab → · Contrast checker → · Palette generator →

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