#38135B#38135B

#38135B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.121 H 302.8°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#38135B
RGBrgb(56, 19, 91)
HSLhsl(271, 65%, 22%)
HSVhsv(271, 79%, 36%)
CMYKcmyk(38.5%, 79.1%, 0%, 64.3%)
CIE-LABlab(15.81, 33.14, -35.68)
CIE-LCHlch(15.81, 48.69, 312.88°)
OKLaboklab(28.91% 0.0655 -0.1017)
OKLCHoklch(28.91% 0.121 302.8)
XYZxyz(3.7516, 2.0618, 10.0958)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38135B #365B13
analogous
#14135B #38135B #5B135A
triadic
#38135B #5B3813 #135B38
tetradic
#38135B #5B1413 #365B13 #135A5B
square
#38135B #5B1413 #365B13 #135A5B
split-complementary
#38135B #5A5B13 #135B14
monochromatic
#100519 #190828 #38135B #571E8E #7628C0

Accessibility & contrast

On white

14.87
#38135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#38135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38135B
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38135B#FFFFFF#000000##FFFFFF
##38135B1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38135b;
/* rgb */ color: rgb(56, 19, 91);
/* oklch */ color: oklch(28.9% 0.121 302.8);
Tailwind
colors: {
  custom: {
    50: '#73558a',
    500: '#38135b',
    950: '#000000',
  },
}
SCSS
$custom: #38135b;
$custom-light: #73558a;
$custom-dark: #000000;
JSON
{
  "hex": "#38135b",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 270.833,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28907,
    "c": 0.12097,
    "h": 302.8
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#38135B
secondary
#649337
accent
#E83F92
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38135B

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

Preview Lab → · Contrast checker → · Palette generator →

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