#38219A#38219A

#38219A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.182 H 281.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#38219A
RGBrgb(56, 33, 154)
HSLhsl(251, 65%, 37%)
HSVhsv(251, 79%, 60%)
CMYKcmyk(63.6%, 78.6%, 0%, 39.6%)
CIE-LABlab(24.52, 44.53, -61.67)
CIE-LCHlch(24.52, 76.07, 305.84°)
OKLaboklab(36.91% 0.0362 -0.1779)
OKLCHoklch(36.91% 0.182 281.5)
XYZxyz(8.0056, 4.2610, 30.9662)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38219A #839A21
analogous
#21479A #38219A #75219A
triadic
#38219A #9A3821 #219A38
tetradic
#38219A #9A2147 #839A21 #219A75
square
#38219A #9A2147 #839A21 #219A75
split-complementary
#38219A #9A7521 #479A21
monochromatic
#130B35 #261668 #38219A #4A2CCC #725ADC

Accessibility & contrast

On white

11.34
#38219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#38219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38219A
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38219A#FFFFFF#000000##FFFFFF
##38219A1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #38219a;
/* rgb */ color: rgb(56, 33, 154);
/* oklch */ color: oklch(36.9% 0.182 281.5);
Tailwind
colors: {
  custom: {
    50: '#7c60b9',
    500: '#38219a',
    950: '#000000',
  },
}
SCSS
$custom: #38219a;
$custom-light: #7c60b9;
$custom-dark: #000000;
JSON
{
  "hex": "#38219a",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 251.405,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36912,
    "c": 0.18156,
    "h": 281.5
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#38219A
secondary
#ACC057
accent
#E840C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38219A

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

Preview Lab → · Contrast checker → · Palette generator →

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