#38165C#38165C

#38165C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.118 H 301.6°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#38165C
RGBrgb(56, 22, 92)
HSLhsl(269, 61%, 22%)
HSVhsv(269, 76%, 36%)
CMYKcmyk(39.1%, 76.1%, 0%, 63.9%)
CIE-LABlab(16.44, 31.87, -35.32)
CIE-LCHlch(16.44, 47.57, 312.06°)
OKLaboklab(29.38% 0.062 -0.1006)
OKLCHoklch(29.38% 0.118 301.6)
XYZxyz(3.8491, 2.1873, 10.3425)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38165C #3A5C16
analogous
#16175C #38165C #5B165C
triadic
#38165C #5C3816 #165C38
tetradic
#38165C #5C1617 #3A5C16 #165C5B
square
#38165C #5C1617 #3A5C16 #165C5B
split-complementary
#38165C #5C5B16 #175C16
monochromatic
#0F0619 #1A0A2B #38165C #56228D #742EBF

Accessibility & contrast

On white

14.61
#38165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#38165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38165C
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38165C#FFFFFF#000000##FFFFFF
##38165C1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#302737
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38165c;
/* rgb */ color: rgb(56, 22, 92);
/* oklch */ color: oklch(29.4% 0.118 301.6);
Tailwind
colors: {
  custom: {
    50: '#72568b',
    500: '#38165c',
    950: '#000000',
  },
}
SCSS
$custom: #38165c;
$custom-light: #72568b;
$custom-dark: #000000;
JSON
{
  "hex": "#38165c",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 269.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29382,
    "c": 0.11821,
    "h": 301.6
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#38165C
secondary
#68933B
accent
#E54396
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38165C

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

Preview Lab → · Contrast checker → · Palette generator →

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