#4F1748#4F1748

#4F1748 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.106 H 333.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#4F1748
RGBrgb(79, 23, 72)
HSLhsl(308, 55%, 20%)
HSVhsv(308, 71%, 31%)
CMYKcmyk(0%, 70.9%, 8.9%, 69%)
CIE-LABlab(18.98, 32.73, -17.49)
CIE-LCHlch(18.98, 37.11, 331.88°)
OKLaboklab(31.54% 0.0943 -0.0478)
OKLCHoklch(31.54% 0.106 333.1)
XYZxyz(4.7006, 2.7433, 6.4116)
Luminance0.0274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1748 #174F1E
analogous
#3A174F #4F1748 #4F172C
triadic
#4F1748 #484F17 #17484F
tetradic
#4F1748 #4F3A17 #174F1E #172C4F
square
#4F1748 #4F3A17 #174F1E #172C4F
split-complementary
#4F1748 #2C4F17 #174F3A
monochromatic
#180716 #20091D #4F1748 #7E2573 #AE339E

Accessibility & contrast

On white

13.56
#4F1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4F1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1748
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1748#FFFFFF#000000##FFFFFF
##4F17481.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152949
Deuteranopia (green-blind)
#283147
Tritanopia (blue-blind)
#531C2D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1748;
/* rgb */ color: rgb(79, 23, 72);
/* oklch */ color: oklch(31.5% 0.106 333.1);
Tailwind
colors: {
  custom: {
    50: '#82597b',
    500: '#4f1748',
    950: '#000000',
  },
}
SCSS
$custom: #4f1748;
$custom-light: #82597b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1748",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 307.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.3154,
    "c": 0.10575,
    "h": 333.1
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#4F1748
secondary
#3C8645
accent
#DE5C4A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4F1748

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

Preview Lab → · Contrast checker → · Palette generator →

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