#38216F#38216F

#38216F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.127 H 291.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#38216F
RGBrgb(56, 33, 111)
HSLhsl(258, 54%, 28%)
HSVhsv(258, 70%, 44%)
CMYKcmyk(49.5%, 70.3%, 0%, 56.5%)
CIE-LABlab(20.35, 31.22, -41.46)
CIE-LCHlch(20.35, 51.90, 306.98°)
OKLaboklab(32.69% 0.0462 -0.1187)
OKLCHoklch(32.69% 0.127 291.3)
XYZxyz(5.0432, 3.0760, 15.3638)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38216F #586F21
analogous
#21316F #38216F #5F216F
triadic
#38216F #6F3821 #216F38
tetradic
#38216F #6F2131 #586F21 #216F5F
square
#38216F #6F2131 #586F21 #216F5F
split-complementary
#38216F #6F5F21 #316F21
monochromatic
#0C0718 #201340 #38216F #502F9E #6A43C7

Accessibility & contrast

On white

13.00
#38216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#38216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38216F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38216F#FFFFFF#000000##FFFFFF
##38216F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#273445
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38216f;
/* rgb */ color: rgb(56, 33, 111);
/* oklch */ color: oklch(32.7% 0.127 291.3);
Tailwind
colors: {
  custom: {
    50: '#745e99',
    500: '#38216f',
    950: '#000000',
  },
}
SCSS
$custom: #38216f;
$custom-light: #745e99;
$custom-dark: #000000;
JSON
{
  "hex": "#38216f",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 257.692,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32689,
    "c": 0.12741,
    "h": 291.3
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#38216F
secondary
#88A349
accent
#DE4AB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #38216F

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

Preview Lab → · Contrast checker → · Palette generator →

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