#38117E#38117E

#38117E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.2% C 0.163 H 289.9°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#38117E
RGBrgb(56, 17, 126)
HSLhsl(261, 76%, 28%)
HSVhsv(261, 87%, 49%)
CMYKcmyk(55.6%, 86.5%, 0%, 50.6%)
CIE-LABlab(19.00, 43.64, -53.28)
CIE-LCHlch(19.00, 68.87, 309.32°)
OKLaboklab(32.19% 0.0555 -0.1532)
OKLCHoklch(32.19% 0.163 289.9)
XYZxyz(5.5961, 2.7477, 19.9701)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38117E #577E11
analogous
#11207E #38117E #6E117E
triadic
#38117E #7E3811 #117E38
tetradic
#38117E #7E1120 #577E11 #117E6E
square
#38117E #7E1120 #577E11 #117E6E
split-complementary
#38117E #7E6E11 #207E11
monochromatic
#0C041B #200A48 #38117E #5018B4 #6A27E2

Accessibility & contrast

On white

13.55
#38117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#38117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38117E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38117E#FFFFFF#000000##FFFFFF
##38117E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38117e;
/* rgb */ color: rgb(56, 17, 126);
/* oklch */ color: oklch(32.2% 0.163 289.9);
Tailwind
colors: {
  custom: {
    50: '#7856a4',
    500: '#38117e',
    950: '#000000',
  },
}
SCSS
$custom: #38117e;
$custom-light: #7856a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38117e",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 261.468,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32194,
    "c": 0.16299,
    "h": 289.9
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#38117E
secondary
#87B437
accent
#F335AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38117E

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

Preview Lab → · Contrast checker → · Palette generator →

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