#38176A#38176A

#38176A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.134 H 295.5°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#38176A
RGBrgb(56, 23, 106)
HSLhsl(264, 64%, 25%)
HSVhsv(264, 78%, 42%)
CMYKcmyk(47.2%, 78.3%, 0%, 58.4%)
CIE-LABlab(17.89, 35.31, -42.21)
CIE-LCHlch(17.89, 55.03, 309.91°)
OKLaboklab(30.8% 0.0577 -0.1209)
OKLCHoklch(30.8% 0.134 295.5)
XYZxyz(4.5381, 2.4940, 13.8752)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38176A #496A17
analogous
#17206A #38176A #61176A
triadic
#38176A #6A3817 #176A38
tetradic
#38176A #6A1720 #496A17 #176A61
square
#38176A #6A1720 #496A17 #176A61
split-complementary
#38176A #6A6117 #206A17
monochromatic
#0D0519 #1D0C38 #38176A #53229C #6D2DCF

Accessibility & contrast

On white

14.01
#38176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#38176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38176A
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38176A#FFFFFF#000000##FFFFFF
##38176A1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#2A2D3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38176a;
/* rgb */ color: rgb(56, 23, 106);
/* oklch */ color: oklch(30.8% 0.134 295.5);
Tailwind
colors: {
  custom: {
    50: '#745895',
    500: '#38176a',
    950: '#000000',
  },
}
SCSS
$custom: #38176a;
$custom-light: #745895;
$custom-dark: #000000;
JSON
{
  "hex": "#38176a",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 263.855,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30802,
    "c": 0.13395,
    "h": 295.5
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#38176A
secondary
#79A03D
accent
#E740A5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38176A

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

Preview Lab → · Contrast checker → · Palette generator →

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