#38115C#38115C

#38115C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.125 H 302.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#38115C
RGBrgb(56, 17, 92)
HSLhsl(271, 69%, 21%)
HSVhsv(271, 82%, 36%)
CMYKcmyk(39.1%, 81.5%, 0%, 63.9%)
CIE-LABlab(15.56, 34.36, -36.75)
CIE-LCHlch(15.56, 50.31, 313.07°)
OKLaboklab(28.76% 0.0673 -0.1048)
OKLCHoklch(28.76% 0.125 302.7)
XYZxyz(3.7626, 2.0144, 10.3137)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38115C #355C11
analogous
#13115C #38115C #5C115B
triadic
#38115C #5C3811 #115C38
tetradic
#38115C #5C1311 #355C11 #115B5C
square
#38115C #5C1311 #355C11 #115B5C
split-complementary
#38115C #5B5C11 #115C13
monochromatic
#10051A #190728 #38115C #571B90 #7724C3

Accessibility & contrast

On white

14.97
#38115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38115C
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38115C#FFFFFF#000000##FFFFFF
##38115C1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#302436
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38115c;
/* rgb */ color: rgb(56, 17, 92);
/* oklch */ color: oklch(28.8% 0.125 302.7);
Tailwind
colors: {
  custom: {
    50: '#73548b',
    500: '#38115c',
    950: '#000000',
  },
}
SCSS
$custom: #38115c;
$custom-light: #73548b;
$custom-dark: #000000;
JSON
{
  "hex": "#38115c",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 271.2,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28761,
    "c": 0.12458,
    "h": 302.7
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#38115C
secondary
#629534
accent
#EC3C90
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38115C

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

Preview Lab → · Contrast checker → · Palette generator →

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