#38135A#38135A

#38135A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.8% C 0.120 H 303.3°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#38135A
RGBrgb(56, 19, 90)
HSLhsl(271, 65%, 21%)
HSVhsv(271, 79%, 35%)
CMYKcmyk(37.8%, 78.9%, 0%, 64.7%)
CIE-LABlab(15.72, 32.87, -35.15)
CIE-LCHlch(15.72, 48.12, 313.07°)
OKLaboklab(28.82% 0.0658 -0.1001)
OKLCHoklch(28.82% 0.12 303.3)
XYZxyz(3.7088, 2.0447, 9.8702)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38135A #355A13
analogous
#15135A #38135A #5A1359
triadic
#38135A #5A3813 #135A38
tetradic
#38135A #5A1513 #355A13 #13595A
square
#38135A #5A1513 #355A13 #13595A
split-complementary
#38135A #595A13 #135A15
monochromatic
#100519 #190827 #38135A #571E8D #7728BF

Accessibility & contrast

On white

14.90
#38135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#38135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38135A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38135A#FFFFFF#000000##FFFFFF
##38135A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#312435
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38135a;
/* rgb */ color: rgb(56, 19, 90);
/* oklch */ color: oklch(28.8% 0.120 303.3);
Tailwind
colors: {
  custom: {
    50: '#725589',
    500: '#38135a',
    950: '#000000',
  },
}
SCSS
$custom: #38135a;
$custom-light: #725589;
$custom-dark: #000000;
JSON
{
  "hex": "#38135a",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 271.268,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28817,
    "c": 0.1198,
    "h": 303.3
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#38135A
secondary
#629237
accent
#E84090
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #38135A

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

Preview Lab → · Contrast checker → · Palette generator →

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