#38168E#38168E

#38168E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.177 H 285.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#38168E
RGBrgb(56, 22, 142)
HSLhsl(257, 73%, 32%)
HSVhsv(257, 85%, 56%)
CMYKcmyk(60.6%, 84.5%, 0%, 44.3%)
CIE-LABlab(21.46, 46.10, -59.30)
CIE-LCHlch(21.46, 75.11, 307.86°)
OKLaboklab(34.41% 0.0465 -0.1709)
OKLCHoklch(34.41% 0.177 285.2)
XYZxyz(6.7988, 3.3671, 25.8776)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38168E #6C8E16
analogous
#16308E #38168E #74168E
triadic
#38168E #8E3816 #168E38
tetradic
#38168E #8E1630 #6C8E16 #168E74
square
#38168E #8E1630 #6C8E16 #168E74
split-complementary
#38168E #8E7416 #308E16
monochromatic
#0E0624 #230E59 #38168E #4D1EC3 #6C3DE1

Accessibility & contrast

On white

12.55
#38168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38168E
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38168E#FFFFFF#000000##FFFFFF
##38168E1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#023B54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38168e;
/* rgb */ color: rgb(56, 22, 142);
/* oklch */ color: oklch(34.4% 0.177 285.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ab0',
    500: '#38168e',
    950: '#000000',
  },
}
SCSS
$custom: #38168e;
$custom-light: #7b5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#38168e",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 257,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.1771,
    "h": 285.2
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#38168E
secondary
#9CC13F
accent
#F038BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38168E

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

Preview Lab → · Contrast checker → · Palette generator →

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