#38165F#38165F

#38165F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.122 H 300.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#38165F
RGBrgb(56, 22, 95)
HSLhsl(268, 62%, 23%)
HSVhsv(268, 77%, 37%)
CMYKcmyk(41.1%, 76.8%, 0%, 62.7%)
CIE-LABlab(16.70, 32.71, -36.90)
CIE-LCHlch(16.70, 49.30, 311.56°)
OKLaboklab(29.65% 0.0614 -0.1053)
OKLCHoklch(29.65% 0.122 300.2)
XYZxyz(3.9828, 2.2408, 11.0469)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38165F #3D5F16
analogous
#16195F #38165F #5C165F
triadic
#38165F #5F3816 #165F38
tetradic
#38165F #5F1619 #3D5F16 #165F5C
square
#38165F #5F1619 #3D5F16 #165F5C
split-complementary
#38165F #5F5C16 #195F16
monochromatic
#0F0619 #1B0A2D #38165F #552291 #732DC2

Accessibility & contrast

On white

14.50
#38165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#38165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38165F
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38165F#FFFFFF#000000##FFFFFF
##38165F1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#2F2839
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38165f;
/* rgb */ color: rgb(56, 22, 95);
/* oklch */ color: oklch(29.6% 0.122 300.2);
Tailwind
colors: {
  custom: {
    50: '#73578d',
    500: '#38165f',
    950: '#000000',
  },
}
SCSS
$custom: #38165f;
$custom-light: #73578d;
$custom-dark: #000000;
JSON
{
  "hex": "#38165f",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 267.945,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2965,
    "c": 0.12186,
    "h": 300.2
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#38165F
secondary
#6C963B
accent
#E54299
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38165F

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

Preview Lab → · Contrast checker → · Palette generator →

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