#38124B#38124B

#38124B is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.104 H 312.1°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#38124B
RGBrgb(56, 18, 75)
HSLhsl(280, 61%, 18%)
HSVhsv(280, 76%, 29%)
CMYKcmyk(25.3%, 76%, 0%, 70.6%)
CIE-LABlab(14.30, 29.46, -27.25)
CIE-LCHlch(14.30, 40.13, 317.23°)
OKLaboklab(27.41% 0.0695 -0.0769)
OKLCHoklch(27.41% 0.104 312.1)
XYZxyz(3.1170, 1.7814, 6.8349)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38124B #254B12
analogous
#1B124B #38124B #4B1241
triadic
#38124B #4B3812 #124B38
tetradic
#38124B #4B1B12 #254B12 #12414B
square
#38124B #4B1B12 #254B12 #12414B
split-complementary
#38124B #414B12 #124B1B
monochromatic
#120619 #13061A #38124B #5D1E7C #822AAE

Accessibility & contrast

On white

15.48
#38124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#38124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38124B
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38124B#FFFFFF#000000##FFFFFF
##38124B1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#0C254A
Tritanopia (blue-blind)
#361E2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38124b;
/* rgb */ color: rgb(56, 18, 75);
/* oklch */ color: oklch(27.4% 0.104 312.1);
Tailwind
colors: {
  custom: {
    50: '#71537e',
    500: '#38124b',
    950: '#000000',
  },
}
SCSS
$custom: #38124b;
$custom-light: #71537e;
$custom-dark: #000000;
JSON
{
  "hex": "#38124b",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 280,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27411,
    "c": 0.10367,
    "h": 312.1
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#38124B
secondary
#4F8435
accent
#E44379
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38124B

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

Preview Lab → · Contrast checker → · Palette generator →

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