#38208C#38208C

#38208C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.166 H 284.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#38208C
RGBrgb(56, 32, 140)
HSLhsl(253, 63%, 34%)
HSVhsv(253, 77%, 55%)
CMYKcmyk(60%, 77.1%, 0%, 45.1%)
CIE-LABlab(22.89, 40.77, -55.70)
CIE-LCHlch(22.89, 69.03, 306.20°)
OKLaboklab(35.33% 0.0407 -0.1605)
OKLCHoklch(35.33% 0.166 284.2)
XYZxyz(6.8796, 3.7668, 25.1704)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38208C #748C20
analogous
#203E8C #38208C #6E208C
triadic
#38208C #8C3820 #208C38
tetradic
#38208C #8C203E #748C20 #208C6E
square
#38208C #8C203E #748C20 #208C6E
split-complementary
#38208C #8C6E20 #3E8C20
monochromatic
#100928 #24155A #38208C #4C2BBE #6E50D7

Accessibility & contrast

On white

11.98
#38208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#38208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38208C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38208C#FFFFFF#000000##FFFFFF
##38208C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#053F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38208c;
/* rgb */ color: rgb(56, 32, 140);
/* oklch */ color: oklch(35.3% 0.166 284.2);
Tailwind
colors: {
  custom: {
    50: '#795faf',
    500: '#38208c',
    950: '#000000',
  },
}
SCSS
$custom: #38208c;
$custom-light: #795faf;
$custom-dark: #000000;
JSON
{
  "hex": "#38208c",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 253.333,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.16558,
    "h": 284.2
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#38208C
secondary
#A2BA4E
accent
#E642C1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38208C

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

Preview Lab → · Contrast checker → · Palette generator →

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