#38157B#38157B

#38157B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.156 H 290.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#38157B
RGBrgb(56, 21, 123)
HSLhsl(261, 71%, 28%)
HSVhsv(261, 83%, 48%)
CMYKcmyk(54.5%, 82.9%, 0%, 51.8%)
CIE-LABlab(19.25, 41.13, -50.96)
CIE-LCHlch(19.25, 65.48, 308.91°)
OKLaboklab(32.27% 0.054 -0.1465)
OKLCHoklch(32.27% 0.156 290.2)
XYZxyz(5.4732, 2.8069, 18.9884)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38157B #587B15
analogous
#15257B #38157B #6B157B
triadic
#38157B #7B3815 #157B38
tetradic
#38157B #7B1525 #587B15 #157B6B
square
#38157B #7B1525 #587B15 #157B6B
split-complementary
#38157B #7B6B15 #257B15
monochromatic
#0C041A #200C47 #38157B #501EAF #6A2FDB

Accessibility & contrast

On white

13.45
#38157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38157B
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38157B#FFFFFF#000000##FFFFFF
##38157B1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#1F3348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38157b;
/* rgb */ color: rgb(56, 21, 123);
/* oklch */ color: oklch(32.3% 0.156 290.2);
Tailwind
colors: {
  custom: {
    50: '#7758a2',
    500: '#38157b',
    950: '#000000',
  },
}
SCSS
$custom: #38157b;
$custom-light: #7758a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38157b",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 260.588,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32269,
    "c": 0.15615,
    "h": 290.2
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#38157B
secondary
#88B03B
accent
#EE3AB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38157B

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

Preview Lab → · Contrast checker → · Palette generator →

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