#38115F#38115F

#38115F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.128 H 301.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#38115F
RGBrgb(56, 17, 95)
HSLhsl(270, 70%, 22%)
HSVhsv(270, 82%, 37%)
CMYKcmyk(41.1%, 82.1%, 0%, 62.7%)
CIE-LABlab(15.84, 35.17, -38.30)
CIE-LCHlch(15.84, 52.00, 312.55°)
OKLaboklab(29.04% 0.0665 -0.1094)
OKLCHoklch(29.04% 0.128 301.3)
XYZxyz(3.8964, 2.0678, 11.0181)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38115F #385F11
analogous
#11115F #38115F #5F115F
triadic
#38115F #5F3811 #115F38
tetradic
#38115F #5F1111 #385F11 #115F5F
square
#38115F #5F1111 #385F11 #115F5F
split-complementary
#38115F #5F5F11 #115F11
monochromatic
#0F051A #19082B #38115F #571A93 #7524C7

Accessibility & contrast

On white

14.86
#38115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38115F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38115F#FFFFFF#000000##FFFFFF
##38115F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#2F2637
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38115f;
/* rgb */ color: rgb(56, 17, 95);
/* oklch */ color: oklch(29.0% 0.128 301.3);
Tailwind
colors: {
  custom: {
    50: '#73548d',
    500: '#38115f',
    950: '#000000',
  },
}
SCSS
$custom: #38115f;
$custom-light: #73548d;
$custom-dark: #000000;
JSON
{
  "hex": "#38115f",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 270,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29042,
    "c": 0.128,
    "h": 301.3
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#38115F
secondary
#669834
accent
#EC3B94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38115F

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

Preview Lab → · Contrast checker → · Palette generator →

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