#38157A#38157A

#38157A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.155 H 290.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#38157A
RGBrgb(56, 21, 122)
HSLhsl(261, 71%, 28%)
HSVhsv(261, 83%, 48%)
CMYKcmyk(54.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(19.15, 40.84, -50.49)
CIE-LCHlch(19.15, 64.94, 308.97°)
OKLaboklab(32.17% 0.0544 -0.1451)
OKLCHoklch(32.17% 0.155 290.5)
XYZxyz(5.4109, 2.7820, 18.6605)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38157A #577A15
analogous
#15257A #38157A #6A157A
triadic
#38157A #7A3815 #157A38
tetradic
#38157A #7A1525 #577A15 #157A6A
square
#38157A #7A1525 #577A15 #157A6A
split-complementary
#38157A #7A6A15 #257A15
monochromatic
#0C041A #200C46 #38157A #501EAE #6A2EDB

Accessibility & contrast

On white

13.49
#38157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#38157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38157A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38157A#FFFFFF#000000##FFFFFF
##38157A1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#203348
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38157a;
/* rgb */ color: rgb(56, 21, 122);
/* oklch */ color: oklch(32.2% 0.155 290.5);
Tailwind
colors: {
  custom: {
    50: '#7758a1',
    500: '#38157a',
    950: '#000000',
  },
}
SCSS
$custom: #38157a;
$custom-light: #7758a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38157a",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 260.792,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32165,
    "c": 0.155,
    "h": 290.5
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#38157A
secondary
#87AF3B
accent
#ED3AAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #38157A

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

Preview Lab → · Contrast checker → · Palette generator →

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