#38105F#38105F

#38105F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.129 H 301.5°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#38105F
RGBrgb(56, 16, 95)
HSLhsl(270, 71%, 22%)
HSVhsv(270, 83%, 37%)
CMYKcmyk(41.1%, 83.2%, 0%, 62.7%)
CIE-LABlab(15.68, 35.61, -38.56)
CIE-LCHlch(15.68, 52.49, 312.73°)
OKLaboklab(28.93% 0.0674 -0.1101)
OKLCHoklch(28.93% 0.129 301.5)
XYZxyz(3.8812, 2.0375, 11.0131)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38105F #375F10
analogous
#11105F #38105F #5F105F
triadic
#38105F #5F3810 #105F38
tetradic
#38105F #5F1110 #375F10 #105F5F
square
#38105F #5F1110 #375F10 #105F5F
split-complementary
#38105F #5F5F10 #105F11
monochromatic
#0F041A #19072B #38105F #571993 #7622C8

Accessibility & contrast

On white

14.92
#38105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#38105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38105F
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38105F#FFFFFF#000000##FFFFFF
##38105F1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#2F2537
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38105f;
/* rgb */ color: rgb(56, 16, 95);
/* oklch */ color: oklch(28.9% 0.129 301.5);
Tailwind
colors: {
  custom: {
    50: '#73538d',
    500: '#38105f',
    950: '#000000',
  },
}
SCSS
$custom: #38105f;
$custom-light: #73538d;
$custom-dark: #000000;
JSON
{
  "hex": "#38105f",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 270.38,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28932,
    "c": 0.12912,
    "h": 301.5
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#38105F
secondary
#659833
accent
#EE3A93
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38105F

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

Preview Lab → · Contrast checker → · Palette generator →

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