#38175A#38175A

#38175A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.114 H 302.4°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#38175A
RGBrgb(56, 23, 90)
HSLhsl(270, 59%, 22%)
HSVhsv(270, 74%, 35%)
CMYKcmyk(37.8%, 74.4%, 0%, 64.7%)
CIE-LABlab(16.46, 30.78, -33.95)
CIE-LCHlch(16.46, 45.82, 312.20°)
OKLaboklab(29.34% 0.0612 -0.0966)
OKLCHoklch(29.34% 0.114 302.4)
XYZxyz(3.7823, 2.1917, 9.8947)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38175A #395A17
analogous
#17185A #38175A #5A175A
triadic
#38175A #5A3817 #175A38
tetradic
#38175A #5A1718 #395A17 #175A5A
square
#38175A #5A1718 #395A17 #175A5A
split-complementary
#38175A #5A5A17 #185A17
monochromatic
#0F0618 #1A0B29 #38175A #56238B #7530BB

Accessibility & contrast

On white

14.60
#38175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#38175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38175A
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38175A#FFFFFF#000000##FFFFFF
##38175A1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38175a;
/* rgb */ color: rgb(56, 23, 90);
/* oklch */ color: oklch(29.3% 0.114 302.4);
Tailwind
colors: {
  custom: {
    50: '#725789',
    500: '#38175a',
    950: '#000000',
  },
}
SCSS
$custom: #38175a;
$custom-light: #725789;
$custom-dark: #000000;
JSON
{
  "hex": "#38175a",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 269.552,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29344,
    "c": 0.11437,
    "h": 302.4
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#38175A
secondary
#67913C
accent
#E24595
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #38175A

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

Preview Lab → · Contrast checker → · Palette generator →

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