#38208E#38208E

#38208E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.168 H 283.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#38208E
RGBrgb(56, 32, 142)
HSLhsl(253, 63%, 34%)
HSVhsv(253, 77%, 56%)
CMYKcmyk(60.6%, 77.5%, 0%, 44.3%)
CIE-LABlab(23.09, 41.38, -56.61)
CIE-LCHlch(23.09, 70.12, 306.16°)
OKLaboklab(35.54% 0.0402 -0.1631)
OKLCHoklch(35.54% 0.168 283.8)
XYZxyz(7.0284, 3.8263, 25.9541)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38208E #768E20
analogous
#203F8E #38208E #6F208E
triadic
#38208E #8E3820 #208E38
tetradic
#38208E #8E203F #768E20 #208E6F
square
#38208E #8E203F #768E20 #208E6F
split-complementary
#38208E #8E6F20 #3F8E20
monochromatic
#11092A #24155C #38208E #4C2BC0 #6E51D8

Accessibility & contrast

On white

11.90
#38208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#38208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38208E
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38208E#FFFFFF#000000##FFFFFF
##38208E1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#013F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38208e;
/* rgb */ color: rgb(56, 32, 142);
/* oklch */ color: oklch(35.5% 0.168 283.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fb0',
    500: '#38208e',
    950: '#000000',
  },
}
SCSS
$custom: #38208e;
$custom-light: #7a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#38208e",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 253.091,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35538,
    "c": 0.16802,
    "h": 283.8
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#38208E
secondary
#A3BB4F
accent
#E642C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38208E

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

Preview Lab → · Contrast checker → · Palette generator →

#38208E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva