#38167C#38167C

#38167C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.156 H 289.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#38167C
RGBrgb(56, 22, 124)
HSLhsl(260, 70%, 29%)
HSVhsv(260, 82%, 49%)
CMYKcmyk(54.8%, 82.3%, 0%, 51.4%)
CIE-LABlab(19.51, 40.96, -51.17)
CIE-LCHlch(19.51, 65.54, 308.68°)
OKLaboklab(32.48% 0.053 -0.1471)
OKLCHoklch(32.48% 0.156 289.8)
XYZxyz(5.5548, 2.8696, 19.3261)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38167C #5A7C16
analogous
#16277C #38167C #6B167C
triadic
#38167C #7C3816 #167C38
tetradic
#38167C #7C1627 #5A7C16 #167C6B
square
#38167C #7C1627 #5A7C16 #167C6B
split-complementary
#38167C #7C6B16 #277C16
monochromatic
#0C051A #210D48 #38167C #4F1FB0 #6A32DB

Accessibility & contrast

On white

13.34
#38167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#38167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38167C
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38167C#FFFFFF#000000##FFFFFF
##38167C1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#1E3449
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38167c;
/* rgb */ color: rgb(56, 22, 124);
/* oklch */ color: oklch(32.5% 0.156 289.8);
Tailwind
colors: {
  custom: {
    50: '#7758a3',
    500: '#38167c',
    950: '#000000',
  },
}
SCSS
$custom: #38167c;
$custom-light: #7758a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38167c",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 260,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32481,
    "c": 0.15638,
    "h": 289.8
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#38167C
secondary
#8AB13D
accent
#ED3BB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38167C

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

Preview Lab → · Contrast checker → · Palette generator →

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