#38115B#38115B

#38115B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.123 H 303.2°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#38115B
RGBrgb(56, 17, 91)
HSLhsl(272, 69%, 21%)
HSVhsv(272, 81%, 36%)
CMYKcmyk(38.5%, 81.3%, 0%, 64.3%)
CIE-LABlab(15.47, 34.10, -36.23)
CIE-LCHlch(15.47, 49.75, 313.26°)
OKLaboklab(28.67% 0.0676 -0.1033)
OKLCHoklch(28.67% 0.123 303.2)
XYZxyz(3.7192, 1.9970, 10.0850)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38115B #345B11
analogous
#13115B #38115B #5B1159
triadic
#38115B #5B3811 #115B38
tetradic
#38115B #5B1311 #345B11 #11595B
square
#38115B #5B1311 #345B11 #11595B
split-complementary
#38115B #595B11 #115B13
monochromatic
#10051A #180727 #38115B #581B8F #7724C2

Accessibility & contrast

On white

15.01
#38115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#38115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38115B
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38115B#FFFFFF#000000##FFFFFF
##38115B1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#312435
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38115b;
/* rgb */ color: rgb(56, 17, 91);
/* oklch */ color: oklch(28.7% 0.123 303.2);
Tailwind
colors: {
  custom: {
    50: '#73548a',
    500: '#38115b',
    950: '#000000',
  },
}
SCSS
$custom: #38115b;
$custom-light: #73548a;
$custom-dark: #000000;
JSON
{
  "hex": "#38115b",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 271.622,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28669,
    "c": 0.12344,
    "h": 303.2
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#38115B
secondary
#619434
accent
#EB3C8F
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38115B

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

Preview Lab → · Contrast checker → · Palette generator →

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