#38105B#38105B

#38105B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.125 H 303.4°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#38105B
RGBrgb(56, 16, 91)
HSLhsl(272, 70%, 21%)
HSVhsv(272, 82%, 36%)
CMYKcmyk(38.5%, 82.4%, 0%, 64.3%)
CIE-LABlab(15.31, 34.56, -36.49)
CIE-LCHlch(15.31, 50.26, 313.44°)
OKLaboklab(28.56% 0.0686 -0.104)
OKLCHoklch(28.56% 0.125 303.4)
XYZxyz(3.7041, 1.9667, 10.0800)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38105B #335B10
analogous
#12105B #38105B #5B1058
triadic
#38105B #5B3810 #105B38
tetradic
#38105B #5B1210 #335B10 #10585B
square
#38105B #5B1210 #335B10 #10585B
split-complementary
#38105B #585B10 #105B12
monochromatic
#10051A #180727 #38105B #58198F #7822C3

Accessibility & contrast

On white

15.07
#38105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#38105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38105B
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38105B#FFFFFF#000000##FFFFFF
##38105B1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#312335
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38105b;
/* rgb */ color: rgb(56, 16, 91);
/* oklch */ color: oklch(28.6% 0.125 303.4);
Tailwind
colors: {
  custom: {
    50: '#73538a',
    500: '#38105b',
    950: '#000000',
  },
}
SCSS
$custom: #38105b;
$custom-light: #73538a;
$custom-dark: #000000;
JSON
{
  "hex": "#38105b",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 272,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28557,
    "c": 0.12461,
    "h": 303.4
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#38105B
secondary
#609433
accent
#ED3B8E
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38105B

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

Preview Lab → · Contrast checker → · Palette generator →

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