#4F1C7C#4F1C7C

#4F1C7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.152 H 303.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4F1C7C
RGBrgb(79, 28, 124)
HSLhsl(272, 63%, 30%)
HSVhsv(272, 77%, 49%)
CMYKcmyk(36.3%, 77.4%, 0%, 51.4%)
CIE-LABlab(23.50, 42.06, -44.52)
CIE-LCHlch(23.50, 61.25, 313.37°)
OKLaboklab(35.94% 0.0844 -0.1269)
OKLCHoklch(35.94% 0.152 303.6)
XYZxyz(7.2769, 3.9480, 19.4435)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1C7C #497C1C
analogous
#1F1C7C #4F1C7C #7C1C79
triadic
#4F1C7C #7C4F1C #1C7C4F
tetradic
#4F1C7C #7C1F1C #497C1C #1C797C
square
#4F1C7C #7C1F1C #497C1C #1C797C
split-complementary
#4F1C7C #797C1C #1C7C1F
monochromatic
#100619 #2F114A #4F1C7C #6F27AE #8E3FD4

Accessibility & contrast

On white

11.73
#4F1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4F1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1C7C
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1C7C#FFFFFF#000000##FFFFFF
##4F1C7C1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#46344B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1c7c;
/* rgb */ color: rgb(79, 28, 124);
/* oklch */ color: oklch(35.9% 0.152 303.6);
Tailwind
colors: {
  custom: {
    50: '#855ea3',
    500: '#4f1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #4f1c7c;
$custom-light: #855ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1c7c",
  "rgb": {
    "r": 79,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 271.875,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35942,
    "c": 0.15238,
    "h": 303.6
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#4F1C7C
secondary
#77B044
accent
#E6428F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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