#38148F#38148F

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

Color values

HEX#38148F
RGBrgb(56, 20, 143)
HSLhsl(258, 75%, 32%)
HSVhsv(258, 86%, 56%)
CMYKcmyk(60.8%, 86%, 0%, 43.9%)
CIE-LABlab(21.30, 47.19, -60.19)
CIE-LCHlch(21.30, 76.48, 308.09°)
OKLaboklab(34.33% 0.0472 -0.1734)
OKLCHoklch(34.33% 0.18 285.2)
XYZxyz(6.8375, 3.3238, 26.2625)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38148F #6B8F14
analogous
#142E8F #38148F #76148F
triadic
#38148F #8F3814 #148F38
tetradic
#38148F #8F142E #6B8F14 #148F76
square
#38148F #8F142E #6B8F14 #148F76
split-complementary
#38148F #8F7614 #2E8F14
monochromatic
#0E0524 #230C59 #38148F #4D1CC5 #6C3AE3

Accessibility & contrast

On white

12.61
#38148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38148F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38148F#FFFFFF#000000##FFFFFF
##38148F1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38148f;
/* rgb */ color: rgb(56, 20, 143);
/* oklch */ color: oklch(34.3% 0.180 285.2);
Tailwind
colors: {
  custom: {
    50: '#7b59b1',
    500: '#38148f',
    950: '#000000',
  },
}
SCSS
$custom: #38148f;
$custom-light: #7b59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#38148f",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 257.561,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34327,
    "c": 0.17976,
    "h": 285.2
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#38148F
secondary
#9BC33C
accent
#F236BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #38148F

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

Preview Lab → · Contrast checker → · Palette generator →

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