#38104A#38104A

#38104A is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.105 H 313.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#38104A
RGBrgb(56, 16, 74)
HSLhsl(281, 64%, 18%)
HSVhsv(281, 78%, 29%)
CMYKcmyk(24.3%, 78.4%, 0%, 71%)
CIE-LABlab(13.86, 30.21, -27.26)
CIE-LCHlch(13.86, 40.69, 317.94°)
OKLaboklab(27.08% 0.0721 -0.0769)
OKLCHoklch(27.08% 0.105 313.2)
XYZxyz(3.0520, 1.7058, 6.6457)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38104A #224A10
analogous
#1B104A #38104A #4A103F
triadic
#38104A #4A3810 #104A38
tetradic
#38104A #4A1B10 #224A10 #103F4A
square
#38104A #4A1B10 #224A10 #103F4A
split-complementary
#38104A #3F4A10 #104A1B
monochromatic
#130519 #130519 #38104A #5E1B7C #8426AF

Accessibility & contrast

On white

15.66
#38104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#38104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38104A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38104A#FFFFFF#000000##FFFFFF
##38104A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#0B2449
Tritanopia (blue-blind)
#361C2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #38104a;
/* rgb */ color: rgb(56, 16, 74);
/* oklch */ color: oklch(27.1% 0.105 313.2);
Tailwind
colors: {
  custom: {
    50: '#71527d',
    500: '#38104a',
    950: '#000000',
  },
}
SCSS
$custom: #38104a;
$custom-light: #71527d;
$custom-dark: #000000;
JSON
{
  "hex": "#38104a",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 281.379,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27076,
    "c": 0.10545,
    "h": 313.2
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#38104A
secondary
#4B8432
accent
#E74074
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #38104A

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

Preview Lab → · Contrast checker → · Palette generator →

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