#38168F#38168F

#38168F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.178 H 285.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#38168F
RGBrgb(56, 22, 143)
HSLhsl(257, 73%, 32%)
HSVhsv(257, 85%, 56%)
CMYKcmyk(60.8%, 84.6%, 0%, 43.9%)
CIE-LABlab(21.57, 46.38, -59.74)
CIE-LCHlch(21.57, 75.63, 307.83°)
OKLaboklab(34.51% 0.0462 -0.1722)
OKLCHoklch(34.51% 0.178 285)
XYZxyz(6.8742, 3.3973, 26.2748)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38168F #6D8F16
analogous
#16308F #38168F #75168F
triadic
#38168F #8F3816 #168F38
tetradic
#38168F #8F1630 #6D8F16 #168F75
square
#38168F #8F1630 #6D8F16 #168F75
split-complementary
#38168F #8F7516 #308F16
monochromatic
#0E0625 #230E5A #38168F #4D1EC4 #6C3EE1

Accessibility & contrast

On white

12.50
#38168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38168F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38168F#FFFFFF#000000##FFFFFF
##38168F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38168f;
/* rgb */ color: rgb(56, 22, 143);
/* oklch */ color: oklch(34.5% 0.178 285.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ab1',
    500: '#38168f',
    950: '#000000',
  },
}
SCSS
$custom: #38168f;
$custom-light: #7b5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#38168f",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 256.86,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34514,
    "c": 0.17824,
    "h": 285
  },
  "luminance": 0.03398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38168F

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

Preview Lab → · Contrast checker → · Palette generator →

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