#38115E#38115E

#38115E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.127 H 301.8°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#38115E
RGBrgb(56, 17, 94)
HSLhsl(270, 69%, 22%)
HSVhsv(270, 82%, 37%)
CMYKcmyk(40.4%, 81.9%, 0%, 63.1%)
CIE-LABlab(15.75, 34.90, -37.79)
CIE-LCHlch(15.75, 51.44, 312.72°)
OKLaboklab(28.95% 0.0668 -0.1079)
OKLCHoklch(28.95% 0.127 301.8)
XYZxyz(3.8512, 2.0498, 10.7803)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38115E #375E11
analogous
#12115E #38115E #5E115E
triadic
#38115E #5E3811 #115E38
tetradic
#38115E #5E1211 #375E11 #115E5E
square
#38115E #5E1211 #375E11 #115E5E
split-complementary
#38115E #5E5E11 #115E12
monochromatic
#0F051A #19082A #38115E #571A92 #7624C6

Accessibility & contrast

On white

14.89
#38115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#38115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38115E
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38115E#FFFFFF#000000##FFFFFF
##38115E1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#302537
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38115e;
/* rgb */ color: rgb(56, 17, 94);
/* oklch */ color: oklch(28.9% 0.127 301.8);
Tailwind
colors: {
  custom: {
    50: '#73548c',
    500: '#38115e',
    950: '#000000',
  },
}
SCSS
$custom: #38115e;
$custom-light: #73548c;
$custom-dark: #000000;
JSON
{
  "hex": "#38115e",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 270.39,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28948,
    "c": 0.12686,
    "h": 301.8
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#38115E
secondary
#659734
accent
#EC3C93
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38115E

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

Preview Lab → · Contrast checker → · Palette generator →

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