#38216C#38216C

#38216C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.123 H 292.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#38216C
RGBrgb(56, 33, 108)
HSLhsl(258, 53%, 28%)
HSVhsv(258, 69%, 42%)
CMYKcmyk(48.1%, 69.4%, 0%, 57.6%)
CIE-LABlab(20.09, 30.30, -39.93)
CIE-LCHlch(20.09, 50.12, 307.19°)
OKLaboklab(32.42% 0.0466 -0.1142)
OKLCHoklch(32.42% 0.123 292.2)
XYZxyz(4.8808, 3.0110, 14.5085)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38216C #556C21
analogous
#21306C #38216C #5D216C
triadic
#38216C #6C3821 #216C38
tetradic
#38216C #6C2130 #556C21 #216C5D
square
#38216C #6C2130 #556C21 #216C5D
split-complementary
#38216C #6C5D21 #306C21
monochromatic
#0C0717 #20133D #38216C #502F9B #6A42C5

Accessibility & contrast

On white

13.11
#38216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38216C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38216C#FFFFFF#000000##FFFFFF
##38216C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#283343
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38216c;
/* rgb */ color: rgb(56, 33, 108);
/* oklch */ color: oklch(32.4% 0.123 292.2);
Tailwind
colors: {
  custom: {
    50: '#745e97',
    500: '#38216c',
    950: '#000000',
  },
}
SCSS
$custom: #38216c;
$custom-light: #745e97;
$custom-dark: #000000;
JSON
{
  "hex": "#38216c",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 258.4,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32423,
    "c": 0.1234,
    "h": 292.2
  },
  "luminance": 0.03011
}

Semantic roles & 50–950 ramp

primary
#38216C
secondary
#85A049
accent
#DD4BB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #38216C

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

Preview Lab → · Contrast checker → · Palette generator →

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