#38123E#38123E

#38123E is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.089 H 322.0°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#38123E
RGBrgb(56, 18, 62)
HSLhsl(292, 55%, 16%)
HSVhsv(292, 71%, 24%)
CMYKcmyk(9.7%, 71%, 0%, 75.7%)
CIE-LABlab(13.36, 26.32, -19.67)
CIE-LCHlch(13.36, 32.86, 323.23°)
OKLaboklab(26.44% 0.07 -0.0547)
OKLCHoklch(26.44% 0.089 322)
XYZxyz(2.7166, 1.6213, 4.7263)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38123E #183E12
analogous
#22123E #38123E #3E122E
triadic
#38123E #3E3812 #123E38
tetradic
#38123E #3E2212 #183E12 #122E3E
square
#38123E #3E2212 #183E12 #122E3E
split-complementary
#38123E #2E3E12 #123E22
monochromatic
#150718 #150718 #38123E #63206D #8E2E9D

Accessibility & contrast

On white

15.86
#38123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#38123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38123E
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38123E#FFFFFF#000000##FFFFFF
##38123E1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081F3F
Deuteranopia (green-blind)
#17243D
Tritanopia (blue-blind)
#391926
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #38123e;
/* rgb */ color: rgb(56, 18, 62);
/* oklch */ color: oklch(26.4% 0.089 322.0);
Tailwind
colors: {
  custom: {
    50: '#705373',
    500: '#38123e',
    950: '#000000',
  },
}
SCSS
$custom: #38123e;
$custom-light: #705373;
$custom-dark: #000000;
JSON
{
  "hex": "#38123e",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 291.818,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26436,
    "c": 0.08889,
    "h": 322
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#38123E
secondary
#3E7735
accent
#DE495E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #38123E

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

Preview Lab → · Contrast checker → · Palette generator →

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