#38157C#38157C

#38157C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.157 H 289.9°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#38157C
RGBrgb(56, 21, 124)
HSLhsl(260, 71%, 28%)
HSVhsv(260, 83%, 49%)
CMYKcmyk(54.8%, 83.1%, 0%, 51.4%)
CIE-LABlab(19.36, 41.41, -51.42)
CIE-LCHlch(19.36, 66.02, 308.84°)
OKLaboklab(32.37% 0.0537 -0.1479)
OKLCHoklch(32.37% 0.157 289.9)
XYZxyz(5.5361, 2.8321, 19.3198)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38157C #597C15
analogous
#15267C #38157C #6B157C
triadic
#38157C #7C3815 #157C38
tetradic
#38157C #7C1526 #597C15 #157C6B
square
#38157C #7C1526 #597C15 #157C6B
split-complementary
#38157C #7C6B15 #267C15
monochromatic
#0C041A #200C48 #38157C #501EB0 #6A30DC

Accessibility & contrast

On white

13.41
#38157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38157C
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38157C#FFFFFF#000000##FFFFFF
##38157C1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#1E3349
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38157c;
/* rgb */ color: rgb(56, 21, 124);
/* oklch */ color: oklch(32.4% 0.157 289.9);
Tailwind
colors: {
  custom: {
    50: '#7758a3',
    500: '#38157c',
    950: '#000000',
  },
}
SCSS
$custom: #38157c;
$custom-light: #7758a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38157c",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 260.388,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32374,
    "c": 0.15731,
    "h": 289.9
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#38157C
secondary
#89B13C
accent
#EE3AB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38157C

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

Preview Lab → · Contrast checker → · Palette generator →

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