#38165D#38165D

#38165D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.119 H 301.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#38165D
RGBrgb(56, 22, 93)
HSLhsl(269, 62%, 23%)
HSVhsv(269, 76%, 36%)
CMYKcmyk(39.8%, 76.3%, 0%, 63.5%)
CIE-LABlab(16.53, 32.15, -35.85)
CIE-LCHlch(16.53, 48.15, 311.89°)
OKLaboklab(29.47% 0.0618 -0.1022)
OKLCHoklch(29.47% 0.119 301.2)
XYZxyz(3.8931, 2.2049, 10.5743)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38165D #3B5D16
analogous
#16185D #38165D #5B165D
triadic
#38165D #5D3816 #165D38
tetradic
#38165D #5D1618 #3B5D16 #165D5B
square
#38165D #5D1618 #3B5D16 #165D5B
split-complementary
#38165D #5D5B16 #185D16
monochromatic
#0F0619 #1A0A2C #38165D #56228E #742DC0

Accessibility & contrast

On white

14.57
#38165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38165D
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38165D#FFFFFF#000000##FFFFFF
##38165D1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#302738
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38165d;
/* rgb */ color: rgb(56, 22, 93);
/* oklch */ color: oklch(29.5% 0.119 301.2);
Tailwind
colors: {
  custom: {
    50: '#73568b',
    500: '#38165d',
    950: '#000000',
  },
}
SCSS
$custom: #38165d;
$custom-light: #73568b;
$custom-dark: #000000;
JSON
{
  "hex": "#38165d",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 268.732,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29471,
    "c": 0.11943,
    "h": 301.2
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#38165D
secondary
#69943B
accent
#E54397
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38165D

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

Preview Lab → · Contrast checker → · Palette generator →

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