#38115D#38115D

#38115D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.126 H 302.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#38115D
RGBrgb(56, 17, 93)
HSLhsl(271, 69%, 22%)
HSVhsv(271, 82%, 36%)
CMYKcmyk(39.8%, 81.7%, 0%, 63.5%)
CIE-LABlab(15.65, 34.63, -37.27)
CIE-LCHlch(15.65, 50.87, 312.89°)
OKLaboklab(28.85% 0.0671 -0.1063)
OKLCHoklch(28.85% 0.126 302.2)
XYZxyz(3.8066, 2.0320, 10.5455)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38115D #365D11
analogous
#12115D #38115D #5D115C
triadic
#38115D #5D3811 #115D38
tetradic
#38115D #5D1211 #365D11 #115C5D
square
#38115D #5D1211 #365D11 #115C5D
split-complementary
#38115D #5C5D11 #115D12
monochromatic
#10051A #190829 #38115D #571A91 #7624C4

Accessibility & contrast

On white

14.93
#38115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38115D
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38115D#FFFFFF#000000##FFFFFF
##38115D1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#302536
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38115d;
/* rgb */ color: rgb(56, 17, 93);
/* oklch */ color: oklch(28.9% 0.126 302.2);
Tailwind
colors: {
  custom: {
    50: '#73548c',
    500: '#38115d',
    950: '#000000',
  },
}
SCSS
$custom: #38115d;
$custom-light: #73548c;
$custom-dark: #000000;
JSON
{
  "hex": "#38115d",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 270.789,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28854,
    "c": 0.12572,
    "h": 302.2
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#38115D
secondary
#649634
accent
#EC3C92
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38115D

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

Preview Lab → · Contrast checker → · Palette generator →

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