#38105D#38105D

#38105D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.127 H 302.4°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#38105D
RGBrgb(56, 16, 93)
HSLhsl(271, 71%, 21%)
HSVhsv(271, 83%, 36%)
CMYKcmyk(39.8%, 82.8%, 0%, 63.5%)
CIE-LABlab(15.50, 35.08, -37.53)
CIE-LCHlch(15.50, 51.38, 313.07°)
OKLaboklab(28.74% 0.068 -0.1071)
OKLCHoklch(28.74% 0.127 302.4)
XYZxyz(3.7915, 2.0016, 10.5404)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38105D #355D10
analogous
#12105D #38105D #5D105C
triadic
#38105D #5D3810 #105D38
tetradic
#38105D #5D1210 #355D10 #105C5D
square
#38105D #5D1210 #355D10 #105C5D
split-complementary
#38105D #5C5D10 #105D12
monochromatic
#10041A #190729 #38105D #571991 #7722C5

Accessibility & contrast

On white

15.00
#38105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#38105D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38105D
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38105D#FFFFFF#000000##FFFFFF
##38105D1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38105d;
/* rgb */ color: rgb(56, 16, 93);
/* oklch */ color: oklch(28.7% 0.127 302.4);
Tailwind
colors: {
  custom: {
    50: '#73538c',
    500: '#38105d',
    950: '#000000',
  },
}
SCSS
$custom: #38105d;
$custom-light: #73538c;
$custom-dark: #000000;
JSON
{
  "hex": "#38105d",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 271.169,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28743,
    "c": 0.12687,
    "h": 302.4
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#38105D
secondary
#629633
accent
#ED3A90
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38105D

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

Preview Lab → · Contrast checker → · Palette generator →

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