#38147E#38147E

#38147E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.161 H 289.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#38147E
RGBrgb(56, 20, 126)
HSLhsl(260, 73%, 29%)
HSVhsv(260, 84%, 49%)
CMYKcmyk(55.6%, 84.1%, 0%, 50.6%)
CIE-LABlab(19.42, 42.41, -52.59)
CIE-LCHlch(19.42, 67.56, 308.88°)
OKLaboklab(32.48% 0.0536 -0.1513)
OKLCHoklch(32.48% 0.161 289.5)
XYZxyz(5.6458, 2.8472, 19.9867)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38147E #5A7E14
analogous
#14257E #38147E #6D147E
triadic
#38147E #7E3814 #147E38
tetradic
#38147E #7E1425 #5A7E14 #147E6D
square
#38147E #7E1425 #5A7E14 #147E6D
split-complementary
#38147E #7E6D14 #257E14
monochromatic
#0C041A #210C49 #38147E #4F1CB3 #6A2EDE

Accessibility & contrast

On white

13.38
#38147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38147E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38147E#FFFFFF#000000##FFFFFF
##38147E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#1C344A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38147e;
/* rgb */ color: rgb(56, 20, 126);
/* oklch */ color: oklch(32.5% 0.161 289.5);
Tailwind
colors: {
  custom: {
    50: '#7857a4',
    500: '#38147e',
    950: '#000000',
  },
}
SCSS
$custom: #38147e;
$custom-light: #7857a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38147e",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 260.377,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32481,
    "c": 0.1605,
    "h": 289.5
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#38147E
secondary
#8AB33A
accent
#EF38B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38147E

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

Preview Lab → · Contrast checker → · Palette generator →

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