#38113B#38113B

#38113B is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.1% C 0.087 H 324.8°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#38113B
RGBrgb(56, 17, 59)
HSLhsl(296, 55%, 15%)
HSVhsv(296, 71%, 23%)
CMYKcmyk(5.1%, 71.2%, 0%, 76.9%)
CIE-LABlab(12.97, 26.18, -18.16)
CIE-LCHlch(12.97, 31.86, 325.26°)
OKLaboklab(26.09% 0.0713 -0.0503)
OKLCHoklch(26.09% 0.087 324.8)
XYZxyz(2.6207, 1.5576, 4.2994)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38113B #143B11
analogous
#23113B #38113B #3B1129
triadic
#38113B #3B3811 #113B38
tetradic
#38113B #3B2311 #143B11 #11293B
square
#38113B #3B2311 #143B11 #11293B
split-complementary
#38113B #293B11 #113B23
monochromatic
#170718 #170718 #38113B #651F6B #922C9A

Accessibility & contrast

On white

16.01
#38113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#38113B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38113B
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38113B#FFFFFF#000000##FFFFFF
##38113B1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1E3C
Deuteranopia (green-blind)
#18233A
Tritanopia (blue-blind)
#391724
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #38113b;
/* rgb */ color: rgb(56, 17, 59);
/* oklch */ color: oklch(26.1% 0.087 324.8);
Tailwind
colors: {
  custom: {
    50: '#705271',
    500: '#38113b',
    950: '#000000',
  },
}
SCSS
$custom: #38113b;
$custom-light: #705271;
$custom-dark: #000000;
JSON
{
  "hex": "#38113b",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 295.714,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2609,
    "c": 0.08731,
    "h": 324.8
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#38113B
secondary
#387433
accent
#DF4954
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#080207
muted
#7B787A

Preview Lab

Preview with #38113B

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

Preview Lab → · Contrast checker → · Palette generator →

#38113B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva