#38155A#38155A

#38155A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.117 H 302.8°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#38155A
RGBrgb(56, 21, 90)
HSLhsl(270, 62%, 22%)
HSVhsv(270, 77%, 35%)
CMYKcmyk(37.8%, 76.7%, 0%, 64.7%)
CIE-LABlab(16.08, 31.85, -34.57)
CIE-LCHlch(16.08, 47.00, 312.65°)
OKLaboklab(29.07% 0.0635 -0.0984)
OKLCHoklch(29.07% 0.117 302.8)
XYZxyz(3.7441, 2.1153, 9.8819)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38155A #375A15
analogous
#16155A #38155A #5A155A
triadic
#38155A #5A3815 #155A38
tetradic
#38155A #5A1615 #375A15 #155A5A
square
#38155A #5A1615 #375A15 #155A5A
split-complementary
#38155A #5A5A15 #155A16
monochromatic
#0F0619 #190928 #38155A #57218C #762CBD

Accessibility & contrast

On white

14.76
#38155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#38155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38155A
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38155A#FFFFFF#000000##FFFFFF
##38155A1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#312636
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38155a;
/* rgb */ color: rgb(56, 21, 90);
/* oklch */ color: oklch(29.1% 0.117 302.8);
Tailwind
colors: {
  custom: {
    50: '#725689',
    500: '#38155a',
    950: '#000000',
  },
}
SCSS
$custom: #38155a;
$custom-light: #725689;
$custom-dark: #000000;
JSON
{
  "hex": "#38155a",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 270.435,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29072,
    "c": 0.11715,
    "h": 302.8
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#38155A
secondary
#659239
accent
#E54393
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #38155A

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

Preview Lab → · Contrast checker → · Palette generator →

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