#38124A#38124A

#38124A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.103 H 312.8°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#38124A
RGBrgb(56, 18, 74)
HSLhsl(281, 61%, 18%)
HSVhsv(281, 76%, 29%)
CMYKcmyk(24.3%, 75.7%, 0%, 71%)
CIE-LABlab(14.22, 29.21, -26.68)
CIE-LCHlch(14.22, 39.56, 317.58°)
OKLaboklab(27.33% 0.0696 -0.0752)
OKLCHoklch(27.33% 0.103 312.8)
XYZxyz(3.0830, 1.7679, 6.6561)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38124A #244A12
analogous
#1C124A #38124A #4A1240
triadic
#38124A #4A3812 #124A38
tetradic
#38124A #4A1C12 #244A12 #12404A
square
#38124A #4A1C12 #244A12 #12404A
split-complementary
#38124A #404A12 #124A1C
monochromatic
#130619 #130619 #38124A #5D1E7B #832AAC

Accessibility & contrast

On white

15.51
#38124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#38124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38124A
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38124A#FFFFFF#000000##FFFFFF
##38124A1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#0D2549
Tritanopia (blue-blind)
#361E2C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38124a;
/* rgb */ color: rgb(56, 18, 74);
/* oklch */ color: oklch(27.3% 0.103 312.8);
Tailwind
colors: {
  custom: {
    50: '#71537d',
    500: '#38124a',
    950: '#000000',
  },
}
SCSS
$custom: #38124a;
$custom-light: #71537d;
$custom-dark: #000000;
JSON
{
  "hex": "#38124a",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 280.714,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27331,
    "c": 0.10252,
    "h": 312.8
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#38124A
secondary
#4E8335
accent
#E44477
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080309
muted
#7B787B

Preview Lab

Preview with #38124A

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

Preview Lab → · Contrast checker → · Palette generator →

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