#38157E#38157E

#38157E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.160 H 289.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#38157E
RGBrgb(56, 21, 126)
HSLhsl(260, 71%, 29%)
HSVhsv(260, 83%, 49%)
CMYKcmyk(55.6%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.57, 41.98, -52.35)
CIE-LCHlch(19.57, 67.10, 308.73°)
OKLaboklab(32.58% 0.053 -0.1506)
OKLCHoklch(32.58% 0.16 289.4)
XYZxyz(5.6638, 2.8832, 19.9927)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38157E #5B7E15
analogous
#15277E #38157E #6D157E
triadic
#38157E #7E3815 #157E38
tetradic
#38157E #7E1527 #5B7E15 #157E6D
square
#38157E #7E1527 #5B7E15 #157E6D
split-complementary
#38157E #7E6D15 #277E15
monochromatic
#0C041A #210C4A #38157E #4F1EB2 #6A31DD

Accessibility & contrast

On white

13.32
#38157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#38157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38157E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38157E#FFFFFF#000000##FFFFFF
##38157E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#1C344A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38157e;
/* rgb */ color: rgb(56, 21, 126);
/* oklch */ color: oklch(32.6% 0.160 289.4);
Tailwind
colors: {
  custom: {
    50: '#7858a4',
    500: '#38157e',
    950: '#000000',
  },
}
SCSS
$custom: #38157e;
$custom-light: #7858a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38157e",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 260,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32584,
    "c": 0.15962,
    "h": 289.4
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#38157E
secondary
#8BB33C
accent
#EE3AB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38157E

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

Preview Lab → · Contrast checker → · Palette generator →

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