#38127E#38127E

#38127E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.162 H 289.8°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#38127E
RGBrgb(56, 18, 126)
HSLhsl(261, 75%, 28%)
HSVhsv(261, 86%, 49%)
CMYKcmyk(55.6%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.14, 43.24, -53.06)
CIE-LCHlch(19.14, 68.45, 309.18°)
OKLaboklab(32.29% 0.0549 -0.1526)
OKLCHoklch(32.29% 0.162 289.8)
XYZxyz(5.6120, 2.7795, 19.9754)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38127E #587E12
analogous
#12227E #38127E #6E127E
triadic
#38127E #7E3812 #127E38
tetradic
#38127E #7E1222 #587E12 #127E6E
square
#38127E #7E1222 #587E12 #127E6E
split-complementary
#38127E #7E6E12 #227E12
monochromatic
#0C041B #200A48 #38127E #501AB4 #6A2AE1

Accessibility & contrast

On white

13.50
#38127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38127E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38127E#FFFFFF#000000##FFFFFF
##38127E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#1C334A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38127e;
/* rgb */ color: rgb(56, 18, 126);
/* oklch */ color: oklch(32.3% 0.162 289.8);
Tailwind
colors: {
  custom: {
    50: '#7857a4',
    500: '#38127e',
    950: '#000000',
  },
}
SCSS
$custom: #38127e;
$custom-light: #7857a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38127e",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 261.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32286,
    "c": 0.1622,
    "h": 289.8
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#38127E
secondary
#88B438
accent
#F236B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38127E

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

Preview Lab → · Contrast checker → · Palette generator →

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