#38147F#38147F

#38147F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.162 H 289.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#38147F
RGBrgb(56, 20, 127)
HSLhsl(260, 73%, 29%)
HSVhsv(260, 84%, 50%)
CMYKcmyk(55.9%, 84.3%, 0%, 50.2%)
CIE-LABlab(19.53, 42.69, -53.05)
CIE-LCHlch(19.53, 68.10, 308.83°)
OKLaboklab(32.59% 0.0533 -0.1526)
OKLCHoklch(32.59% 0.162 289.2)
XYZxyz(5.7107, 2.8731, 20.3282)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38147F #5B7F14
analogous
#14267F #38147F #6E147F
triadic
#38147F #7F3814 #147F38
tetradic
#38147F #7F1426 #5B7F14 #147F6E
square
#38147F #7F1426 #5B7F14 #147F6E
split-complementary
#38147F #7F6E14 #267F14
monochromatic
#0C041A #210C4A #38147F #4F1CB4 #6A2FDE

Accessibility & contrast

On white

13.34
#38147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#38147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38147F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38147F#FFFFFF#000000##FFFFFF
##38147F1.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)
#003182
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#1B344B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38147f;
/* rgb */ color: rgb(56, 20, 127);
/* oklch */ color: oklch(32.6% 0.162 289.2);
Tailwind
colors: {
  custom: {
    50: '#7858a5',
    500: '#38147f',
    950: '#000000',
  },
}
SCSS
$custom: #38147f;
$custom-light: #7858a5;
$custom-dark: #000000;
JSON
{
  "hex": "#38147f",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 260.187,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32587,
    "c": 0.16165,
    "h": 289.2
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#38147F
secondary
#8BB43B
accent
#EF38B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38147F

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

Preview Lab → · Contrast checker → · Palette generator →

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