#38177A#38177A

#38177A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.153 H 290.2°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#38177A
RGBrgb(56, 23, 122)
HSLhsl(260, 68%, 28%)
HSVhsv(260, 81%, 48%)
CMYKcmyk(54.1%, 81.1%, 0%, 52.2%)
CIE-LABlab(19.47, 39.92, -49.97)
CIE-LCHlch(19.47, 63.95, 308.62°)
OKLaboklab(32.39% 0.0529 -0.1436)
OKLCHoklch(32.39% 0.153 290.2)
XYZxyz(5.4491, 2.8584, 18.6732)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38177A #597A17
analogous
#17277A #38177A #69177A
triadic
#38177A #7A3817 #177A38
tetradic
#38177A #7A1727 #597A17 #177A69
square
#38177A #7A1727 #597A17 #177A69
split-complementary
#38177A #7A6917 #277A17
monochromatic
#0C051A #200D47 #38177A #5021AD #6A33D9

Accessibility & contrast

On white

13.36
#38177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#38177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38177A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38177A#FFFFFF#000000##FFFFFF
##38177A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#203348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38177a;
/* rgb */ color: rgb(56, 23, 122);
/* oklch */ color: oklch(32.4% 0.153 290.2);
Tailwind
colors: {
  custom: {
    50: '#7759a1',
    500: '#38177a',
    950: '#000000',
  },
}
SCSS
$custom: #38177a;
$custom-light: #7759a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38177a",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 260,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32387,
    "c": 0.15306,
    "h": 290.2
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#38177A
secondary
#89AF3E
accent
#EB3DB1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38177A

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

Preview Lab → · Contrast checker → · Palette generator →

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