#38216B#38216B

#38216B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.122 H 292.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#38216B
RGBrgb(56, 33, 107)
HSLhsl(259, 53%, 27%)
HSVhsv(259, 69%, 42%)
CMYKcmyk(47.7%, 69.2%, 0%, 58%)
CIE-LABlab(20.00, 29.99, -39.42)
CIE-LCHlch(20.00, 49.53, 307.26°)
OKLaboklab(32.34% 0.0468 -0.1127)
OKLCHoklch(32.34% 0.122 292.5)
XYZxyz(4.8279, 2.9899, 14.2298)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38216B #546B21
analogous
#212F6B #38216B #5D216B
triadic
#38216B #6B3821 #216B38
tetradic
#38216B #6B212F #546B21 #216B5D
square
#38216B #6B212F #546B21 #216B5D
split-complementary
#38216B #6B5D21 #2F6B21
monochromatic
#0C0717 #20133C #38216B #502F9A #6A42C5

Accessibility & contrast

On white

13.14
#38216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#38216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38216B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38216B#FFFFFF#000000##FFFFFF
##38216B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#293343
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38216b;
/* rgb */ color: rgb(56, 33, 107);
/* oklch */ color: oklch(32.3% 0.122 292.5);
Tailwind
colors: {
  custom: {
    50: '#745e96',
    500: '#38216b',
    950: '#000000',
  },
}
SCSS
$custom: #38216b;
$custom-light: #745e96;
$custom-dark: #000000;
JSON
{
  "hex": "#38216b",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 258.649,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32335,
    "c": 0.12207,
    "h": 292.5
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#38216B
secondary
#849F49
accent
#DC4CAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #38216B

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

Preview Lab → · Contrast checker → · Palette generator →

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