#38148E#38148E

#38148E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.179 H 285.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#38148E
RGBrgb(56, 20, 142)
HSLhsl(258, 75%, 32%)
HSVhsv(258, 86%, 56%)
CMYKcmyk(60.6%, 85.9%, 0%, 44.3%)
CIE-LABlab(21.18, 46.91, -59.76)
CIE-LCHlch(21.18, 75.97, 308.13°)
OKLaboklab(34.22% 0.0476 -0.1722)
OKLCHoklch(34.22% 0.179 285.5)
XYZxyz(6.7620, 3.2936, 25.8654)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38148E #6A8E14
analogous
#142D8E #38148E #75148E
triadic
#38148E #8E3814 #148E38
tetradic
#38148E #8E142D #6A8E14 #148E75
square
#38148E #8E142D #6A8E14 #148E75
split-complementary
#38148E #8E7514 #2D8E14
monochromatic
#0E0523 #230C58 #38148E #4D1CC4 #6B39E3

Accessibility & contrast

On white

12.66
#38148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#38148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38148E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38148E#FFFFFF#000000##FFFFFF
##38148E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#023B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38148e;
/* rgb */ color: rgb(56, 20, 142);
/* oklch */ color: oklch(34.2% 0.179 285.5);
Tailwind
colors: {
  custom: {
    50: '#7b59b0',
    500: '#38148e',
    950: '#000000',
  },
}
SCSS
$custom: #38148e;
$custom-light: #7b59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38148e",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 257.705,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34216,
    "c": 0.17864,
    "h": 285.5
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#38148E
secondary
#9AC23C
accent
#F236BA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38148E

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

Preview Lab → · Contrast checker → · Palette generator →

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