#4F1958#4F1958

#4F1958 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.118 H 321.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#4F1958
RGBrgb(79, 25, 88)
HSLhsl(291, 56%, 22%)
HSVhsv(291, 72%, 35%)
CMYKcmyk(10.2%, 71.6%, 0%, 65.5%)
CIE-LABlab(20.29, 34.99, -26.26)
CIE-LCHlch(20.29, 43.75, 323.11°)
OKLaboklab(32.8% 0.0926 -0.0733)
OKLCHoklch(32.8% 0.118 321.6)
XYZxyz(5.3333, 3.0624, 9.5408)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1958 #225819
analogous
#301958 #4F1958 #581941
triadic
#4F1958 #584F19 #19584F
tetradic
#4F1958 #583019 #225819 #194158
square
#4F1958 #583019 #225819 #194158
split-complementary
#4F1958 #415819 #195830
monochromatic
#150718 #240B28 #4F1958 #7A2788 #A534B7

Accessibility & contrast

On white

13.02
#4F1958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4F1958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1958
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1958#FFFFFF#000000##FFFFFF
##4F19581.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072D5A
Deuteranopia (green-blind)
#213356
Tritanopia (blue-blind)
#502436
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f1958;
/* rgb */ color: rgb(79, 25, 88);
/* oklch */ color: oklch(32.8% 0.118 321.6);
Tailwind
colors: {
  custom: {
    50: '#835b87',
    500: '#4f1958',
    950: '#000000',
  },
}
SCSS
$custom: #4f1958;
$custom-light: #835b87;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1958",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 291.429,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32799,
    "c": 0.11807,
    "h": 321.6
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#4F1958
secondary
#4A8E3E
accent
#DF495E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4F1958

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

Preview Lab → · Contrast checker → · Palette generator →

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