#38105E#38105E

#38105E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.128 H 301.9°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#38105E
RGBrgb(56, 16, 94)
HSLhsl(271, 71%, 22%)
HSVhsv(271, 83%, 37%)
CMYKcmyk(40.4%, 83%, 0%, 63.1%)
CIE-LABlab(15.59, 35.35, -38.05)
CIE-LCHlch(15.59, 51.93, 312.90°)
OKLaboklab(28.84% 0.0677 -0.1086)
OKLCHoklch(28.84% 0.128 301.9)
XYZxyz(3.8361, 2.0195, 10.7752)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38105E #365E10
analogous
#11105E #38105E #5E105D
triadic
#38105E #5E3810 #105E38
tetradic
#38105E #5E1110 #365E10 #105D5E
square
#38105E #5E1110 #365E10 #105D5E
split-complementary
#38105E #5D5E10 #105E11
monochromatic
#10041A #19072A #38105E #571992 #7622C7

Accessibility & contrast

On white

14.96
#38105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38105E
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38105E#FFFFFF#000000##FFFFFF
##38105E1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#302537
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38105e;
/* rgb */ color: rgb(56, 16, 94);
/* oklch */ color: oklch(28.8% 0.128 301.9);
Tailwind
colors: {
  custom: {
    50: '#73538c',
    500: '#38105e',
    950: '#000000',
  },
}
SCSS
$custom: #38105e;
$custom-light: #73538c;
$custom-dark: #000000;
JSON
{
  "hex": "#38105e",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 270.769,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28837,
    "c": 0.12799,
    "h": 301.9
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#38105E
secondary
#649733
accent
#EE3A92
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38105E

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

Preview Lab → · Contrast checker → · Palette generator →

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