#38176C#38176C

#38176C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.136 H 294.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#38176C
RGBrgb(56, 23, 108)
HSLhsl(263, 65%, 26%)
HSVhsv(263, 79%, 42%)
CMYKcmyk(48.1%, 78.7%, 0%, 57.6%)
CIE-LABlab(18.08, 35.88, -43.21)
CIE-LCHlch(18.08, 56.16, 309.71°)
OKLaboklab(30.99% 0.0571 -0.1238)
OKLCHoklch(30.99% 0.136 294.8)
XYZxyz(4.6433, 2.5361, 14.4293)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38176C #4B6C17
analogous
#17216C #38176C #62176C
triadic
#38176C #6C3817 #176C38
tetradic
#38176C #6C1721 #4B6C17 #176C62
square
#38176C #6C1721 #4B6C17 #176C62
split-complementary
#38176C #6C6217 #216C17
monochromatic
#0D0519 #1E0C3A #38176C #52229E #6C2CD1

Accessibility & contrast

On white

13.93
#38176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#38176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38176C
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38176C#FFFFFF#000000##FFFFFF
##38176C1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#292E40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38176c;
/* rgb */ color: rgb(56, 23, 108);
/* oklch */ color: oklch(31.0% 0.136 294.8);
Tailwind
colors: {
  custom: {
    50: '#755897',
    500: '#38176c',
    950: '#000000',
  },
}
SCSS
$custom: #38176c;
$custom-light: #755897;
$custom-dark: #000000;
JSON
{
  "hex": "#38176c",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 263.294,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30994,
    "c": 0.13636,
    "h": 294.8
  },
  "luminance": 0.02536
}

Semantic roles & 50–950 ramp

primary
#38176C
secondary
#7BA23D
accent
#E840A7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38176C

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

Preview Lab → · Contrast checker → · Palette generator →

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