#38168D#38168D

#38168D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.176 H 285.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#38168D
RGBrgb(56, 22, 141)
HSLhsl(257, 73%, 32%)
HSVhsv(257, 84%, 55%)
CMYKcmyk(60.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.35, 45.82, -58.86)
CIE-LCHlch(21.35, 74.59, 307.90°)
OKLaboklab(34.29% 0.0469 -0.1696)
OKLCHoklch(34.29% 0.176 285.5)
XYZxyz(6.7241, 3.3372, 25.4840)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38168D #6B8D16
analogous
#16308D #38168D #74168D
triadic
#38168D #8D3816 #168D38
tetradic
#38168D #8D1630 #6B8D16 #168D74
square
#38168D #8D1630 #6B8D16 #168D74
split-complementary
#38168D #8D7416 #308D16
monochromatic
#0E0523 #230E58 #38168D #4D1EC2 #6C3DE1

Accessibility & contrast

On white

12.59
#38168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#38168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38168D
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38168D#FFFFFF#000000##FFFFFF
##38168D1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#053B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38168d;
/* rgb */ color: rgb(56, 22, 141);
/* oklch */ color: oklch(34.3% 0.176 285.5);
Tailwind
colors: {
  custom: {
    50: '#7a59b0',
    500: '#38168d',
    950: '#000000',
  },
}
SCSS
$custom: #38168d;
$custom-light: #7a59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38168d",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 257.143,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.17596,
    "h": 285.5
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#38168D
secondary
#9BC13E
accent
#F038BB
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38168D

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

Preview Lab → · Contrast checker → · Palette generator →

#38168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva