#38166F#38166F

#38166F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.141 H 293.9°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#38166F
RGBrgb(56, 22, 111)
HSLhsl(263, 67%, 26%)
HSVhsv(263, 80%, 44%)
CMYKcmyk(49.5%, 80.2%, 0%, 56.5%)
CIE-LABlab(18.20, 37.24, -44.97)
CIE-LCHlch(18.20, 58.38, 309.63°)
OKLaboklab(31.16% 0.0572 -0.129)
OKLCHoklch(31.16% 0.141 293.9)
XYZxyz(4.7862, 2.5621, 15.2782)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38166F #4D6F16
analogous
#16216F #38166F #64166F
triadic
#38166F #6F3816 #166F38
tetradic
#38166F #6F1621 #4D6F16 #166F64
square
#38166F #6F1621 #4D6F16 #166F64
split-complementary
#38166F #6F6416 #216F16
monochromatic
#0D051A #1E0C3C #38166F #5220A2 #6C2BD5

Accessibility & contrast

On white

13.89
#38166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#38166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38166F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38166F#FFFFFF#000000##FFFFFF
##38166F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#272E42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38166f;
/* rgb */ color: rgb(56, 22, 111);
/* oklch */ color: oklch(31.2% 0.141 293.9);
Tailwind
colors: {
  custom: {
    50: '#755799',
    500: '#38166f',
    950: '#000000',
  },
}
SCSS
$custom: #38166f;
$custom-light: #755799;
$custom-dark: #000000;
JSON
{
  "hex": "#38166f",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 262.921,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31164,
    "c": 0.14108,
    "h": 293.9
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#38166F
secondary
#7DA53C
accent
#EA3EA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38166F

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

Preview Lab → · Contrast checker → · Palette generator →

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