#38178F#38178F

#38178F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.177 H 284.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#38178F
RGBrgb(56, 23, 143)
HSLhsl(257, 72%, 33%)
HSVhsv(257, 84%, 56%)
CMYKcmyk(60.8%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.71, 45.96, -59.50)
CIE-LCHlch(21.71, 75.19, 307.68°)
OKLaboklab(34.61% 0.0456 -0.1715)
OKLCHoklch(34.61% 0.177 284.9)
XYZxyz(6.8937, 3.4363, 26.2813)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38178F #6E8F17
analogous
#17328F #38178F #74178F
triadic
#38178F #8F3817 #178F38
tetradic
#38178F #8F1732 #6E8F17 #178F74
square
#38178F #8F1732 #6E8F17 #178F74
split-complementary
#38178F #8F7417 #328F17
monochromatic
#0F0626 #230F5A #38178F #4D1FC4 #6C40E0

Accessibility & contrast

On white

12.45
#38178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#38178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38178F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38178F#FFFFFF#000000##FFFFFF
##38178F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.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: #38178f;
/* rgb */ color: rgb(56, 23, 143);
/* oklch */ color: oklch(34.6% 0.177 284.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ab1',
    500: '#38178f',
    950: '#000000',
  },
}
SCSS
$custom: #38178f;
$custom-light: #7b5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#38178f",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 256.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.17745,
    "h": 284.9
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#38178F
secondary
#9EC141
accent
#EF39BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38178F

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

Preview Lab → · Contrast checker → · Palette generator →

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