#38215D#38215D

#38215D is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.103 H 297.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#38215D
RGBrgb(56, 33, 93)
HSLhsl(263, 48%, 25%)
HSVhsv(263, 65%, 36%)
CMYKcmyk(39.8%, 64.5%, 0%, 63.5%)
CIE-LABlab(18.88, 25.72, -32.04)
CIE-LCHlch(18.88, 41.09, 308.76°)
OKLaboklab(31.17% 0.048 -0.0911)
OKLCHoklch(31.17% 0.103 297.8)
XYZxyz(4.1500, 2.7187, 10.6599)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38215D #465D21
analogous
#21285D #38215D #56215D
triadic
#38215D #5D3821 #215D38
tetradic
#38215D #5D2128 #465D21 #215D56
square
#38215D #5D2128 #465D21 #215D56
split-complementary
#38215D #5D5621 #285D21
monochromatic
#0E0817 #1D1130 #38215D #53318A #6E41B7

Accessibility & contrast

On white

13.60
#38215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#38215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38215D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38215D#FFFFFF#000000##FFFFFF
##38215D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#092D5C
Tritanopia (blue-blind)
#2F2E3B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38215d;
/* rgb */ color: rgb(56, 33, 93);
/* oklch */ color: oklch(31.2% 0.103 297.8);
Tailwind
colors: {
  custom: {
    50: '#725d8b',
    500: '#38215d',
    950: '#000000',
  },
}
SCSS
$custom: #38215d;
$custom-light: #725d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#38215d",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 263,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31165,
    "c": 0.10293,
    "h": 297.8
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#38215D
secondary
#759149
accent
#D751A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38215D

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

Preview Lab → · Contrast checker → · Palette generator →

#38215D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva