#38105C#38105C

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

Color values

HEX#38105C
RGBrgb(56, 16, 92)
HSLhsl(272, 70%, 21%)
HSVhsv(272, 83%, 36%)
CMYKcmyk(39.1%, 82.6%, 0%, 63.9%)
CIE-LABlab(15.40, 34.82, -37.01)
CIE-LCHlch(15.40, 50.82, 313.25°)
OKLaboklab(28.65% 0.0683 -0.1056)
OKLCHoklch(28.65% 0.126 302.9)
XYZxyz(3.7475, 1.9840, 10.3087)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38105C #345C10
analogous
#12105C #38105C #5C105A
triadic
#38105C #5C3810 #105C38
tetradic
#38105C #5C1210 #345C10 #105A5C
square
#38105C #5C1210 #345C10 #105A5C
split-complementary
#38105C #5A5C10 #105C12
monochromatic
#10051A #180728 #38105C #581990 #7722C4

Accessibility & contrast

On white

15.03
#38105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38105C
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38105C#FFFFFF#000000##FFFFFF
##38105C1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38105c;
/* rgb */ color: rgb(56, 16, 92);
/* oklch */ color: oklch(28.6% 0.126 302.9);
Tailwind
colors: {
  custom: {
    50: '#73538b',
    500: '#38105c',
    950: '#000000',
  },
}
SCSS
$custom: #38105c;
$custom-light: #73538b;
$custom-dark: #000000;
JSON
{
  "hex": "#38105c",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 271.579,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2865,
    "c": 0.12574,
    "h": 302.9
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#38105C
secondary
#619533
accent
#ED3B8F
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38105C

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

Preview Lab → · Contrast checker → · Palette generator →

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