#38135D#38135D

#38135D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.123 H 301.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#38135D
RGBrgb(56, 19, 93)
HSLhsl(270, 66%, 22%)
HSVhsv(270, 80%, 36%)
CMYKcmyk(39.8%, 79.6%, 0%, 63.5%)
CIE-LABlab(15.99, 33.68, -36.73)
CIE-LCHlch(15.99, 49.83, 312.52°)
OKLaboklab(29.09% 0.065 -0.1048)
OKLCHoklch(29.09% 0.123 301.8)
XYZxyz(3.8391, 2.0968, 10.5563)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38135D #385D13
analogous
#13135D #38135D #5D135D
triadic
#38135D #5D3813 #135D38
tetradic
#38135D #5D1313 #385D13 #135D5D
square
#38135D #5D1313 #385D13 #135D5D
split-complementary
#38135D #5D5D13 #135D13
monochromatic
#0F0519 #19092A #38135D #571D90 #7528C3

Accessibility & contrast

On white

14.79
#38135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#38135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38135D
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38135D#FFFFFF#000000##FFFFFF
##38135D1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#302637
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38135d;
/* rgb */ color: rgb(56, 19, 93);
/* oklch */ color: oklch(29.1% 0.123 301.8);
Tailwind
colors: {
  custom: {
    50: '#73558c',
    500: '#38135d',
    950: '#000000',
  },
}
SCSS
$custom: #38135d;
$custom-light: #73558c;
$custom-dark: #000000;
JSON
{
  "hex": "#38135d",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 270,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29089,
    "c": 0.12332,
    "h": 301.8
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#38135D
secondary
#669537
accent
#E93F94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38135D

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

Preview Lab → · Contrast checker → · Palette generator →

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