#38104E#38104E

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

Color values

HEX#38104E
RGBrgb(56, 16, 78)
HSLhsl(279, 66%, 18%)
HSVhsv(279, 79%, 31%)
CMYKcmyk(28.2%, 79.5%, 0%, 69.4%)
CIE-LABlab(14.18, 31.20, -29.50)
CIE-LCHlch(14.18, 42.94, 316.61°)
OKLaboklab(27.41% 0.0715 -0.0835)
OKLCHoklch(27.41% 0.11 310.6)
XYZxyz(3.1911, 1.7615, 7.3781)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38104E #264E10
analogous
#19104E #38104E #4E1045
triadic
#38104E #4E3810 #104E38
tetradic
#38104E #4E1910 #264E10 #10454E
square
#38104E #4E1910 #264E10 #10454E
split-complementary
#38104E #454E10 #104E19
monochromatic
#120519 #14061B #38104E #5C1A81 #8125B4

Accessibility & contrast

On white

15.53
#38104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#38104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38104E
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38104E#FFFFFF#000000##FFFFFF
##38104E1.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)
#002250
Deuteranopia (green-blind)
#05254D
Tritanopia (blue-blind)
#351E2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38104e;
/* rgb */ color: rgb(56, 16, 78);
/* oklch */ color: oklch(27.4% 0.110 310.6);
Tailwind
colors: {
  custom: {
    50: '#715280',
    500: '#38104e',
    950: '#000000',
  },
}
SCSS
$custom: #38104e;
$custom-light: #715280;
$custom-dark: #000000;
JSON
{
  "hex": "#38104e",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 278.71,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27406,
    "c": 0.10994,
    "h": 310.6
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#38104E
secondary
#508832
accent
#E93F7B
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38104E

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

Preview Lab → · Contrast checker → · Palette generator →

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