#38215A#38215A

#38215A is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.9% C 0.099 H 299.1°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#38215A
RGBrgb(56, 33, 90)
HSLhsl(264, 46%, 24%)
HSVhsv(264, 63%, 35%)
CMYKcmyk(37.8%, 63.3%, 0%, 64.7%)
CIE-LABlab(18.66, 24.83, -30.40)
CIE-LCHlch(18.66, 39.25, 309.23°)
OKLaboklab(30.93% 0.0481 -0.0862)
OKLCHoklch(30.93% 0.099 299.1)
XYZxyz(4.0198, 2.6666, 9.9738)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38215A #435A21
analogous
#21275A #38215A #55215A
triadic
#38215A #5A3821 #215A38
tetradic
#38215A #5A2127 #435A21 #215A55
square
#38215A #5A2127 #435A21 #215A55
split-complementary
#38215A #5A5521 #275A21
monochromatic
#0E0816 #1C112D #38215A #543187 #7042B4

Accessibility & contrast

On white

13.70
#38215A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#38215A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38215A
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38215A#FFFFFF#000000##FFFFFF
##38215A1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042D5C
Deuteranopia (green-blind)
#0E2D59
Tritanopia (blue-blind)
#312D3A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38215a;
/* rgb */ color: rgb(56, 33, 90);
/* oklch */ color: oklch(30.9% 0.099 299.1);
Tailwind
colors: {
  custom: {
    50: '#715d89',
    500: '#38215a',
    950: '#000000',
  },
}
SCSS
$custom: #38215a;
$custom-light: #715d89;
$custom-dark: #000000;
JSON
{
  "hex": "#38215a",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 90
  },
  "hsl": {
    "h": 264.211,
    "s": 46.341,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.09874,
    "h": 299.1
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#38215A
secondary
#728E49
accent
#D652A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #38215A

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

Preview Lab → · Contrast checker → · Palette generator →

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