#4E1747#4E1747

#4E1747 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.104 H 333.2°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#4E1747
RGBrgb(78, 23, 71)
HSLhsl(308, 54%, 20%)
HSVhsv(308, 71%, 31%)
CMYKcmyk(0%, 70.5%, 9%, 69.4%)
CIE-LABlab(18.75, 32.25, -17.19)
CIE-LCHlch(18.75, 36.54, 331.94°)
OKLaboklab(31.31% 0.0929 -0.047)
OKLCHoklch(31.31% 0.104 333.2)
XYZxyz(4.5856, 2.6878, 6.2373)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1747 #174E1E
analogous
#39174E #4E1747 #4E172C
triadic
#4E1747 #474E17 #17474E
tetradic
#4E1747 #4E3917 #174E1E #172C4E
square
#4E1747 #4E3917 #174E1E #172C4E
split-complementary
#4E1747 #2C4E17 #174E39
monochromatic
#180716 #1F091C #4E1747 #7D2572 #AD339D

Accessibility & contrast

On white

13.66
#4E1747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4E1747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1747
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1747#FFFFFF#000000##FFFFFF
##4E17471.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152948
Deuteranopia (green-blind)
#283046
Tritanopia (blue-blind)
#521C2C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e1747;
/* rgb */ color: rgb(78, 23, 71);
/* oklch */ color: oklch(31.3% 0.104 333.2);
Tailwind
colors: {
  custom: {
    50: '#82597a',
    500: '#4e1747',
    950: '#000000',
  },
}
SCSS
$custom: #4e1747;
$custom-light: #82597a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1747",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 71
  },
  "hsl": {
    "h": 307.636,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31313,
    "c": 0.10415,
    "h": 333.2
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#4E1747
secondary
#3C8545
accent
#DE5D4A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E1747

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

Preview Lab → · Contrast checker → · Palette generator →

#4E1747 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva