#38147D#38147D

#38147D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.159 H 289.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#38147D
RGBrgb(56, 20, 125)
HSLhsl(261, 72%, 28%)
HSVhsv(261, 84%, 49%)
CMYKcmyk(55.2%, 84%, 0%, 51%)
CIE-LABlab(19.31, 42.13, -52.13)
CIE-LCHlch(19.31, 67.03, 308.94°)
OKLaboklab(32.38% 0.054 -0.1499)
OKLCHoklch(32.38% 0.159 289.8)
XYZxyz(5.5816, 2.8215, 19.6486)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38147D #597D14
analogous
#14257D #38147D #6C147D
triadic
#38147D #7D3814 #147D38
tetradic
#38147D #7D1425 #597D14 #147D6C
square
#38147D #7D1425 #597D14 #147D6C
split-complementary
#38147D #7D6C14 #257D14
monochromatic
#0C041A #200C48 #38147D #501CB2 #6A2EDE

Accessibility & contrast

On white

13.42
#38147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#38147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38147D
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38147D#FFFFFF#000000##FFFFFF
##38147D1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#1D3349
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38147d;
/* rgb */ color: rgb(56, 20, 125);
/* oklch */ color: oklch(32.4% 0.159 289.8);
Tailwind
colors: {
  custom: {
    50: '#7857a4',
    500: '#38147d',
    950: '#000000',
  },
}
SCSS
$custom: #38147d;
$custom-light: #7857a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38147d",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 260.571,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32375,
    "c": 0.15937,
    "h": 289.8
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#38147D
secondary
#89B23A
accent
#EF39B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38147D

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

Preview Lab → · Contrast checker → · Palette generator →

#38147D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva