#38155D#38155D

#38155D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.121 H 301.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#38155D
RGBrgb(56, 21, 93)
HSLhsl(269, 63%, 22%)
HSVhsv(269, 77%, 36%)
CMYKcmyk(39.8%, 77.4%, 0%, 63.5%)
CIE-LABlab(16.34, 32.67, -36.15)
CIE-LCHlch(16.34, 48.73, 312.11°)
OKLaboklab(29.34% 0.0629 -0.1031)
OKLCHoklch(29.34% 0.121 301.4)
XYZxyz(3.8744, 2.1674, 10.5680)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38155D #3A5D15
analogous
#15165D #38155D #5C155D
triadic
#38155D #5D3815 #155D38
tetradic
#38155D #5D1516 #3A5D15 #155D5C
square
#38155D #5D1516 #3A5D15 #155D5C
split-complementary
#38155D #5D5C15 #165D15
monochromatic
#0F0619 #1A0A2B #38155D #56208F #742CC1

Accessibility & contrast

On white

14.65
#38155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38155D
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38155D#FFFFFF#000000##FFFFFF
##38155D1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#302737
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38155d;
/* rgb */ color: rgb(56, 21, 93);
/* oklch */ color: oklch(29.3% 0.121 301.4);
Tailwind
colors: {
  custom: {
    50: '#73568b',
    500: '#38155d',
    950: '#000000',
  },
}
SCSS
$custom: #38155d;
$custom-light: #73568b;
$custom-dark: #000000;
JSON
{
  "hex": "#38155d",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 269.167,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.12076,
    "h": 301.4
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#38155D
secondary
#689439
accent
#E64296
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38155D

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

Preview Lab → · Contrast checker → · Palette generator →

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