#38215C#38215C

#38215C is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.1% C 0.102 H 298.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#38215C
RGBrgb(56, 33, 92)
HSLhsl(263, 47%, 25%)
HSVhsv(263, 64%, 36%)
CMYKcmyk(39.1%, 64.1%, 0%, 63.9%)
CIE-LABlab(18.80, 25.42, -31.50)
CIE-LCHlch(18.80, 40.48, 308.91°)
OKLaboklab(31.09% 0.0481 -0.0894)
OKLCHoklch(31.09% 0.102 298.2)
XYZxyz(4.1060, 2.7011, 10.4282)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38215C #455C21
analogous
#21285C #38215C #56215C
triadic
#38215C #5C3821 #215C38
tetradic
#38215C #5C2128 #455C21 #215C56
square
#38215C #5C2128 #455C21 #215C56
split-complementary
#38215C #5C5621 #285C21
monochromatic
#0E0817 #1D112F #38215C #533189 #6F41B6

Accessibility & contrast

On white

13.63
#38215C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38215C
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38215C#FFFFFF#000000##FFFFFF
##38215C1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5E
Deuteranopia (green-blind)
#0B2D5B
Tritanopia (blue-blind)
#302E3B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38215c;
/* rgb */ color: rgb(56, 33, 92);
/* oklch */ color: oklch(31.1% 0.102 298.2);
Tailwind
colors: {
  custom: {
    50: '#725d8b',
    500: '#38215c',
    950: '#000000',
  },
}
SCSS
$custom: #38215c;
$custom-light: #725d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#38215c",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 92
  },
  "hsl": {
    "h": 263.39,
    "s": 47.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31086,
    "c": 0.10154,
    "h": 298.2
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#38215C
secondary
#749049
accent
#D751A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38215C

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

Preview Lab → · Contrast checker → · Palette generator →

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