#38157D#38157D

#38157D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.158 H 289.7°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#38157D
RGBrgb(56, 21, 125)
HSLhsl(260, 71%, 29%)
HSVhsv(260, 83%, 49%)
CMYKcmyk(55.2%, 83.2%, 0%, 51%)
CIE-LABlab(19.46, 41.69, -51.89)
CIE-LCHlch(19.46, 66.56, 308.78°)
OKLaboklab(32.48% 0.0533 -0.1492)
OKLCHoklch(32.48% 0.158 289.7)
XYZxyz(5.5996, 2.8575, 19.6546)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38157D #5A7D15
analogous
#15267D #38157D #6C157D
triadic
#38157D #7D3815 #157D38
tetradic
#38157D #7D1526 #5A7D15 #157D6C
square
#38157D #7D1526 #5A7D15 #157D6C
split-complementary
#38157D #7D6C15 #267D15
monochromatic
#0C041A #210C49 #38157D #4F1EB1 #6A30DC

Accessibility & contrast

On white

13.36
#38157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#38157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38157D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38157D#FFFFFF#000000##FFFFFF
##38157D1.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)
#003180
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#1D344A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38157d;
/* rgb */ color: rgb(56, 21, 125);
/* oklch */ color: oklch(32.5% 0.158 289.7);
Tailwind
colors: {
  custom: {
    50: '#7758a4',
    500: '#38157d',
    950: '#000000',
  },
}
SCSS
$custom: #38157d;
$custom-light: #7758a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38157d",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 260.192,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32479,
    "c": 0.15847,
    "h": 289.7
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#38157D
secondary
#8AB23C
accent
#EE3AB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38157D

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

Preview Lab → · Contrast checker → · Palette generator →

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