#38158E#38158E

#38158E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.178 H 285.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#38158E
RGBrgb(56, 21, 142)
HSLhsl(257, 74%, 32%)
HSVhsv(257, 85%, 56%)
CMYKcmyk(60.6%, 85.2%, 0%, 44.3%)
CIE-LABlab(21.32, 46.51, -59.53)
CIE-LCHlch(21.32, 75.55, 308.00°)
OKLaboklab(34.31% 0.0471 -0.1715)
OKLCHoklch(34.31% 0.178 285.3)
XYZxyz(6.7801, 3.3297, 25.8714)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38158E #6B8E15
analogous
#152F8E #38158E #74158E
triadic
#38158E #8E3815 #158E38
tetradic
#38158E #8E152F #6B8E15 #158E74
square
#38158E #8E152F #6B8E15 #158E74
split-complementary
#38158E #8E7415 #2F8E15
monochromatic
#0E0523 #230D59 #38158E #4D1DC3 #6C3BE2

Accessibility & contrast

On white

12.61
#38158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#38158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38158E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38158E#FFFFFF#000000##FFFFFF
##38158E1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38158e;
/* rgb */ color: rgb(56, 21, 142);
/* oklch */ color: oklch(34.3% 0.178 285.3);
Tailwind
colors: {
  custom: {
    50: '#7b59b0',
    500: '#38158e',
    950: '#000000',
  },
}
SCSS
$custom: #38158e;
$custom-light: #7b59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38158e",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 257.355,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34309,
    "c": 0.17788,
    "h": 285.3
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#38158E
secondary
#9BC23D
accent
#F137BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38158E

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

Preview Lab → · Contrast checker → · Palette generator →

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