#38177F#38177F

#38177F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.159 H 288.8°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#38177F
RGBrgb(56, 23, 127)
HSLhsl(259, 69%, 29%)
HSVhsv(259, 82%, 50%)
CMYKcmyk(55.9%, 81.9%, 0%, 50.2%)
CIE-LABlab(19.99, 41.36, -52.30)
CIE-LCHlch(19.99, 66.68, 308.34°)
OKLaboklab(32.9% 0.0512 -0.1504)
OKLCHoklch(32.9% 0.159 288.8)
XYZxyz(5.7669, 2.9856, 20.3470)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38177F #5E7F17
analogous
#172A7F #38177F #6C177F
triadic
#38177F #7F3817 #177F38
tetradic
#38177F #7F172A #5E7F17 #177F6C
square
#38177F #7F172A #5E7F17 #177F6C
split-complementary
#38177F #7F6C17 #2A7F17
monochromatic
#0B051A #210E4B #38177F #4F20B3 #6A36DB

Accessibility & contrast

On white

13.15
#38177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#38177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38177F
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38177F#FFFFFF#000000##FFFFFF
##38177F1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38177f;
/* rgb */ color: rgb(56, 23, 127);
/* oklch */ color: oklch(32.9% 0.159 288.8);
Tailwind
colors: {
  custom: {
    50: '#7859a5',
    500: '#38177f',
    950: '#000000',
  },
}
SCSS
$custom: #38177f;
$custom-light: #7859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#38177f",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 259.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32904,
    "c": 0.15893,
    "h": 288.8
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#38177F
secondary
#8EB43E
accent
#EC3CB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38177F

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

Preview Lab → · Contrast checker → · Palette generator →

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