#38208A#38208A

#38208A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.163 H 284.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#38208A
RGBrgb(56, 32, 138)
HSLhsl(254, 62%, 33%)
HSVhsv(254, 77%, 54%)
CMYKcmyk(59.4%, 76.8%, 0%, 45.9%)
CIE-LABlab(22.68, 40.15, -54.79)
CIE-LCHlch(22.68, 67.93, 306.24°)
OKLaboklab(35.13% 0.0413 -0.1578)
OKLCHoklch(35.13% 0.163 284.7)
XYZxyz(6.7334, 3.7083, 24.4008)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38208A #728A20
analogous
#203D8A #38208A #6D208A
triadic
#38208A #8A3820 #208A38
tetradic
#38208A #8A203D #728A20 #208A6D
square
#38208A #8A203D #728A20 #208A6D
split-complementary
#38208A #8A6D20 #3D8A20
monochromatic
#100927 #241458 #38208A #4C2CBC #6D4ED6

Accessibility & contrast

On white

12.06
#38208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#38208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38208A
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38208A#FFFFFF#000000##FFFFFF
##38208A1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#0A3E53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #38208a;
/* rgb */ color: rgb(56, 32, 138);
/* oklch */ color: oklch(35.1% 0.163 284.7);
Tailwind
colors: {
  custom: {
    50: '#795ead',
    500: '#38208a',
    950: '#000000',
  },
}
SCSS
$custom: #38208a;
$custom-light: #795ead;
$custom-dark: #000000;
JSON
{
  "hex": "#38208a",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 253.585,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3513,
    "c": 0.16312,
    "h": 284.7
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#38208A
secondary
#A1B94D
accent
#E542C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38208A

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

Preview Lab → · Contrast checker → · Palette generator →

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