#38137E#38137E

#38137E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.161 H 289.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#38137E
RGBrgb(56, 19, 126)
HSLhsl(261, 74%, 28%)
HSVhsv(261, 85%, 49%)
CMYKcmyk(55.6%, 84.9%, 0%, 50.6%)
CIE-LABlab(19.28, 42.83, -52.83)
CIE-LCHlch(19.28, 68.01, 309.03°)
OKLaboklab(32.38% 0.0543 -0.152)
OKLCHoklch(32.38% 0.161 289.7)
XYZxyz(5.6286, 2.8126, 19.9809)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38137E #597E13
analogous
#13237E #38137E #6D137E
triadic
#38137E #7E3813 #137E38
tetradic
#38137E #7E1323 #597E13 #137E6D
square
#38137E #7E1323 #597E13 #137E6D
split-complementary
#38137E #7E6D13 #237E13
monochromatic
#0C041B #200B49 #38137E #501BB3 #6A2CDF

Accessibility & contrast

On white

13.44
#38137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#38137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38137E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38137E#FFFFFF#000000##FFFFFF
##38137E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#1C344A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38137e;
/* rgb */ color: rgb(56, 19, 126);
/* oklch */ color: oklch(32.4% 0.161 289.7);
Tailwind
colors: {
  custom: {
    50: '#7857a4',
    500: '#38137e',
    950: '#000000',
  },
}
SCSS
$custom: #38137e;
$custom-light: #7857a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38137e",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 260.748,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32382,
    "c": 0.16136,
    "h": 289.7
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#38137E
secondary
#89B439
accent
#F037B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38137E

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

Preview Lab → · Contrast checker → · Palette generator →

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