#38114C#38114C

#38114C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.106 H 311.7°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#38114C
RGBrgb(56, 17, 76)
HSLhsl(280, 63%, 18%)
HSVhsv(280, 78%, 30%)
CMYKcmyk(26.3%, 77.6%, 0%, 70.2%)
CIE-LABlab(14.19, 30.22, -28.11)
CIE-LCHlch(14.19, 41.27, 317.07°)
OKLaboklab(27.36% 0.0706 -0.0794)
OKLCHoklch(27.36% 0.106 311.7)
XYZxyz(3.1356, 1.7635, 7.0113)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38114C #254C11
analogous
#1A114C #38114C #4C1142
triadic
#38114C #4C3811 #114C38
tetradic
#38114C #4C1A11 #254C11 #11424C
square
#38114C #4C1A11 #254C11 #11424C
split-complementary
#38114C #424C11 #114C1A
monochromatic
#120619 #13061A #38114C #5D1C7E #8227B0

Accessibility & contrast

On white

15.53
#38114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#38114C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38114C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38114C#FFFFFF#000000##FFFFFF
##38114C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#09254B
Tritanopia (blue-blind)
#361E2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38114c;
/* rgb */ color: rgb(56, 17, 76);
/* oklch */ color: oklch(27.4% 0.106 311.7);
Tailwind
colors: {
  custom: {
    50: '#71537e',
    500: '#38114c',
    950: '#000000',
  },
}
SCSS
$custom: #38114c;
$custom-light: #71537e;
$custom-dark: #000000;
JSON
{
  "hex": "#38114c",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 279.661,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27363,
    "c": 0.10628,
    "h": 311.7
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#38114C
secondary
#4F8533
accent
#E64179
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38114C

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

Preview Lab → · Contrast checker → · Palette generator →

#38114C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva