#38108D#38108D

#38108D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.8% C 0.180 H 286.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#38108D
RGBrgb(56, 16, 141)
HSLhsl(259, 80%, 31%)
HSVhsv(259, 89%, 55%)
CMYKcmyk(60.3%, 88.7%, 0%, 44.7%)
CIE-LABlab(20.57, 48.10, -60.14)
CIE-LCHlch(20.57, 77.01, 308.65°)
OKLaboklab(33.77% 0.0499 -0.1732)
OKLCHoklch(33.77% 0.18 286.1)
XYZxyz(6.6224, 3.1340, 25.4501)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38108D #658D10
analogous
#10268D #38108D #76108D
triadic
#38108D #8D3810 #108D38
tetradic
#38108D #8D1026 #658D10 #108D76
square
#38108D #8D1026 #658D10 #108D76
split-complementary
#38108D #8D7610 #268D10
monochromatic
#0C041F #220A56 #38108D #4E16C4 #6B30E7

Accessibility & contrast

On white

12.91
#38108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#38108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38108D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38108D#FFFFFF#000000##FFFFFF
##38108D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#053952
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #38108d;
/* rgb */ color: rgb(56, 16, 141);
/* oklch */ color: oklch(33.8% 0.180 286.1);
Tailwind
colors: {
  custom: {
    50: '#7b57b0',
    500: '#38108d',
    950: '#000000',
  },
}
SCSS
$custom: #38108d;
$custom-light: #7b57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38108d",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 259.2,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.1803,
    "h": 286.1
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#38108D
secondary
#95C237
accent
#F632B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0311
muted
#7C7880

Preview Lab

Preview with #38108D

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

Preview Lab → · Contrast checker → · Palette generator →

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