#38167F#38167F

#38167F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.160 H 289.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#38167F
RGBrgb(56, 22, 127)
HSLhsl(259, 70%, 29%)
HSVhsv(259, 83%, 50%)
CMYKcmyk(55.9%, 82.7%, 0%, 50.2%)
CIE-LABlab(19.83, 41.82, -52.56)
CIE-LCHlch(19.83, 67.16, 308.51°)
OKLaboklab(32.8% 0.0519 -0.1512)
OKLCHoklch(32.8% 0.16 289)
XYZxyz(5.7474, 2.9466, 20.3405)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38167F #5D7F16
analogous
#16287F #38167F #6D167F
triadic
#38167F #7F3816 #167F38
tetradic
#38167F #7F1628 #5D7F16 #167F6D
square
#38167F #7F1628 #5D7F16 #167F6D
split-complementary
#38167F #7F6D16 #287F16
monochromatic
#0C051A #210D4B #38167F #4F1FB3 #6A34DC

Accessibility & contrast

On white

13.21
#38167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#38167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38167F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38167F#FFFFFF#000000##FFFFFF
##38167F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#1B354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38167f;
/* rgb */ color: rgb(56, 22, 127);
/* oklch */ color: oklch(32.8% 0.160 289.0);
Tailwind
colors: {
  custom: {
    50: '#7858a5',
    500: '#38167f',
    950: '#000000',
  },
}
SCSS
$custom: #38167f;
$custom-light: #7858a5;
$custom-dark: #000000;
JSON
{
  "hex": "#38167f",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 259.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.15987,
    "h": 289
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#38167F
secondary
#8DB43D
accent
#ED3BB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38167F

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

Preview Lab → · Contrast checker → · Palette generator →

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