#38123F#38123F

#38123F is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.090 H 321.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#38123F
RGBrgb(56, 18, 63)
HSLhsl(291, 56%, 16%)
HSVhsv(291, 71%, 25%)
CMYKcmyk(11.1%, 71.4%, 0%, 75.3%)
CIE-LABlab(13.43, 26.55, -20.27)
CIE-LCHlch(13.43, 33.41, 322.64°)
OKLaboklab(26.51% 0.0701 -0.0565)
OKLCHoklch(26.51% 0.09 321.1)
XYZxyz(2.7443, 1.6324, 4.8722)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38123F #193F12
analogous
#21123F #38123F #3F122F
triadic
#38123F #3F3812 #123F38
tetradic
#38123F #3F2112 #193F12 #122F3F
square
#38123F #3F2112 #193F12 #122F3F
split-complementary
#38123F #2F3F12 #123F21
monochromatic
#150718 #150718 #38123F #62206F #8D2D9E

Accessibility & contrast

On white

15.83
#38123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#38123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38123F
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38123F#FFFFFF#000000##FFFFFF
##38123F1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#17243E
Tritanopia (blue-blind)
#391926
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #38123f;
/* rgb */ color: rgb(56, 18, 63);
/* oklch */ color: oklch(26.5% 0.090 321.1);
Tailwind
colors: {
  custom: {
    50: '#705374',
    500: '#38123f',
    950: '#000000',
  },
}
SCSS
$custom: #38123f;
$custom-light: #705374;
$custom-dark: #000000;
JSON
{
  "hex": "#38123f",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 290.667,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26506,
    "c": 0.09,
    "h": 321.1
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#38123F
secondary
#3F7835
accent
#DF4960
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #38123F

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

Preview Lab → · Contrast checker → · Palette generator →

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