#38207A#38207A

#38207A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.143 H 288.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#38207A
RGBrgb(56, 32, 122)
HSLhsl(256, 58%, 30%)
HSVhsv(256, 74%, 48%)
CMYKcmyk(54.1%, 73.8%, 0%, 52.2%)
CIE-LABlab(21.13, 35.21, -47.24)
CIE-LCHlch(21.13, 58.92, 306.70°)
OKLaboklab(33.56% 0.0452 -0.1357)
OKLCHoklch(33.56% 0.143 288.4)
XYZxyz(5.6592, 3.2787, 18.7432)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38207A #627A20
analogous
#20357A #38207A #65207A
triadic
#38207A #7A3820 #207A38
tetradic
#38207A #7A2035 #627A20 #207A65
square
#38207A #7A2035 #627A20 #207A65
split-complementary
#38207A #7A6520 #357A20
monochromatic
#0B0719 #22134A #38207A #4E2DAA #6A46CE

Accessibility & contrast

On white

12.68
#38207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#38207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38207A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38207A#FFFFFF#000000##FFFFFF
##38207A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#1F384A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38207a;
/* rgb */ color: rgb(56, 32, 122);
/* oklch */ color: oklch(33.6% 0.143 288.4);
Tailwind
colors: {
  custom: {
    50: '#765ea1',
    500: '#38207a',
    950: '#000000',
  },
}
SCSS
$custom: #38207a;
$custom-light: #765ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#38207a",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 256,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.14304,
    "h": 288.4
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#38207A
secondary
#92AD49
accent
#E246B8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38207A

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

Preview Lab → · Contrast checker → · Palette generator →

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