#38216A#38216A

#38216A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.2% C 0.121 H 292.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#38216A
RGBrgb(56, 33, 106)
HSLhsl(259, 53%, 27%)
HSVhsv(259, 69%, 42%)
CMYKcmyk(47.2%, 68.9%, 0%, 58.4%)
CIE-LABlab(19.92, 29.68, -38.91)
CIE-LCHlch(19.92, 48.93, 307.34°)
OKLaboklab(32.25% 0.0469 -0.1112)
OKLCHoklch(32.25% 0.121 292.9)
XYZxyz(4.7755, 2.9689, 13.9543)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38216A #536A21
analogous
#212F6A #38216A #5D216A
triadic
#38216A #6A3821 #216A38
tetradic
#38216A #6A212F #536A21 #216A5D
square
#38216A #6A212F #536A21 #216A5D
split-complementary
#38216A #6A5D21 #2F6A21
monochromatic
#0C0717 #1F123B #38216A #513099 #6B41C4

Accessibility & contrast

On white

13.18
#38216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#38216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38216A
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38216A#FFFFFF#000000##FFFFFF
##38216A1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#2A3242
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38216a;
/* rgb */ color: rgb(56, 33, 106);
/* oklch */ color: oklch(32.2% 0.121 292.9);
Tailwind
colors: {
  custom: {
    50: '#735e95',
    500: '#38216a',
    950: '#000000',
  },
}
SCSS
$custom: #38216a;
$custom-light: #735e95;
$custom-dark: #000000;
JSON
{
  "hex": "#38216a",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 258.904,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32248,
    "c": 0.12072,
    "h": 292.9
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#38216A
secondary
#839E49
accent
#DC4CAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #38216A

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

Preview Lab → · Contrast checker → · Palette generator →

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