#38215E#38215E

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

Color values

HEX#38215E
RGBrgb(56, 33, 94)
HSLhsl(263, 48%, 25%)
HSVhsv(263, 65%, 37%)
CMYKcmyk(40.4%, 64.9%, 0%, 63.1%)
CIE-LABlab(18.96, 26.02, -32.58)
CIE-LCHlch(18.96, 41.69, 308.61°)
OKLaboklab(31.25% 0.048 -0.0926)
OKLCHoklch(31.25% 0.104 297.4)
XYZxyz(4.1946, 2.7366, 10.8947)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38215E #475E21
analogous
#21295E #38215E #56215E
triadic
#38215E #5E3821 #215E38
tetradic
#38215E #5E2129 #475E21 #215E56
square
#38215E #5E2129 #475E21 #215E56
split-complementary
#38215E #5E5621 #295E21
monochromatic
#0D0817 #1D1131 #38215E #53318B #6E41B9

Accessibility & contrast

On white

13.57
#38215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#38215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38215E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38215E#FFFFFF#000000##FFFFFF
##38215E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#072D5D
Tritanopia (blue-blind)
#2F2E3C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38215e;
/* rgb */ color: rgb(56, 33, 94);
/* oklch */ color: oklch(31.2% 0.104 297.4);
Tailwind
colors: {
  custom: {
    50: '#725d8c',
    500: '#38215e',
    950: '#000000',
  },
}
SCSS
$custom: #38215e;
$custom-light: #725d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#38215e",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 262.623,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31245,
    "c": 0.10432,
    "h": 297.4
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#38215E
secondary
#769249
accent
#D850A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38215E

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

Preview Lab → · Contrast checker → · Palette generator →

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