#38116F#38116F

#38116F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.146 H 294.8°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#38116F
RGBrgb(56, 17, 111)
HSLhsl(265, 73%, 25%)
HSVhsv(265, 85%, 44%)
CMYKcmyk(49.5%, 84.7%, 0%, 56.5%)
CIE-LABlab(17.41, 39.51, -46.26)
CIE-LCHlch(17.41, 60.84, 310.50°)
OKLaboklab(30.62% 0.0612 -0.1327)
OKLCHoklch(30.62% 0.146 294.8)
XYZxyz(4.6998, 2.3892, 15.2494)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38116F #486F11
analogous
#11196F #38116F #67116F
triadic
#38116F #6F3811 #116F38
tetradic
#38116F #6F1119 #486F11 #116F67
square
#38116F #6F1119 #486F11 #116F67
split-complementary
#38116F #6F6711 #196F11
monochromatic
#0D041B #1D093A #38116F #5319A4 #6E21D9

Accessibility & contrast

On white

14.21
#38116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#38116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38116F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38116F#FFFFFF#000000##FFFFFF
##38116F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#282C41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38116f;
/* rgb */ color: rgb(56, 17, 111);
/* oklch */ color: oklch(30.6% 0.146 294.8);
Tailwind
colors: {
  custom: {
    50: '#755599',
    500: '#38116f',
    950: '#000000',
  },
}
SCSS
$custom: #38116f;
$custom-light: #755599;
$custom-dark: #000000;
JSON
{
  "hex": "#38116f",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 264.894,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30616,
    "c": 0.14616,
    "h": 294.8
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#38116F
secondary
#78A635
accent
#F038A4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38116F

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

Preview Lab → · Contrast checker → · Palette generator →

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