#38165A#38165A

#38165A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.116 H 302.6°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#38165A
RGBrgb(56, 22, 90)
HSLhsl(270, 61%, 22%)
HSVhsv(270, 76%, 35%)
CMYKcmyk(37.8%, 75.6%, 0%, 64.7%)
CIE-LABlab(16.27, 31.32, -34.26)
CIE-LCHlch(16.27, 46.42, 312.43°)
OKLaboklab(29.21% 0.0624 -0.0975)
OKLCHoklch(29.21% 0.116 302.6)
XYZxyz(3.7628, 2.1528, 9.8882)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38165A #385A16
analogous
#16165A #38165A #5A165A
triadic
#38165A #5A3816 #165A38
tetradic
#38165A #5A1616 #385A16 #165A5A
square
#38165A #5A1616 #385A16 #165A5A
split-complementary
#38165A #5A5A16 #165A16
monochromatic
#0F0619 #190A29 #38165A #57228B #752EBC

Accessibility & contrast

On white

14.68
#38165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38165A
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38165A#FFFFFF#000000##FFFFFF
##38165A1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38165a;
/* rgb */ color: rgb(56, 22, 90);
/* oklch */ color: oklch(29.2% 0.116 302.6);
Tailwind
colors: {
  custom: {
    50: '#725689',
    500: '#38165a',
    950: '#000000',
  },
}
SCSS
$custom: #38165a;
$custom-light: #725689;
$custom-dark: #000000;
JSON
{
  "hex": "#38165a",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 270,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29206,
    "c": 0.11578,
    "h": 302.6
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#38165A
secondary
#66913B
accent
#E44494
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #38165A

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

Preview Lab → · Contrast checker → · Palette generator →

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