#38176F#38176F

#38176F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.140 H 293.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#38176F
RGBrgb(56, 23, 111)
HSLhsl(263, 66%, 26%)
HSVhsv(263, 79%, 44%)
CMYKcmyk(49.5%, 79.3%, 0%, 56.5%)
CIE-LABlab(18.37, 36.74, -44.68)
CIE-LCHlch(18.37, 57.85, 309.43°)
OKLaboklab(31.29% 0.0563 -0.1282)
OKLCHoklch(31.29% 0.14 293.7)
XYZxyz(4.8057, 2.6011, 15.2847)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38176F #4E6F17
analogous
#17226F #38176F #64176F
triadic
#38176F #6F3817 #176F38
tetradic
#38176F #6F1722 #4E6F17 #176F64
square
#38176F #6F1722 #4E6F17 #176F64
split-complementary
#38176F #6F6417 #226F17
monochromatic
#0D0519 #1E0C3C #38176F #5222A2 #6B2DD3

Accessibility & contrast

On white

13.81
#38176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#38176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38176F
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38176F#FFFFFF#000000##FFFFFF
##38176F1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#272F42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38176f;
/* rgb */ color: rgb(56, 23, 111);
/* oklch */ color: oklch(31.3% 0.140 293.7);
Tailwind
colors: {
  custom: {
    50: '#755899',
    500: '#38176f',
    950: '#000000',
  },
}
SCSS
$custom: #38176f;
$custom-light: #755899;
$custom-dark: #000000;
JSON
{
  "hex": "#38176f",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 262.5,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31285,
    "c": 0.13997,
    "h": 293.7
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#38176F
secondary
#7EA53D
accent
#E93FA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38176F

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

Preview Lab → · Contrast checker → · Palette generator →

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