#4F1D7C#4F1D7C

#4F1D7C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.151 H 303.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4F1D7C
RGBrgb(79, 29, 124)
HSLhsl(272, 62%, 30%)
HSVhsv(272, 77%, 49%)
CMYKcmyk(36.3%, 76.6%, 0%, 51.4%)
CIE-LABlab(23.66, 41.60, -44.26)
CIE-LCHlch(23.66, 60.75, 313.23°)
OKLaboklab(36.06% 0.0834 -0.1261)
OKLCHoklch(36.06% 0.151 303.5)
XYZxyz(7.3011, 3.9962, 19.4516)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D7C #4A7C1D
analogous
#1F1D7C #4F1D7C #7C1D7A
triadic
#4F1D7C #7C4F1D #1D7C4F
tetradic
#4F1D7C #7C1F1D #4A7C1D #1D7A7C
square
#4F1D7C #7C1F1D #4A7C1D #1D7A7C
split-complementary
#4F1D7C #7A7C1D #1D7C1F
monochromatic
#100619 #2F114A #4F1D7C #6F29AE #8E41D3

Accessibility & contrast

On white

11.67
#4F1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F1D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D7C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D7C#FFFFFF#000000##FFFFFF
##4F1D7C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1d7c;
/* rgb */ color: rgb(79, 29, 124);
/* oklch */ color: oklch(36.1% 0.151 303.5);
Tailwind
colors: {
  custom: {
    50: '#855ea3',
    500: '#4f1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d7c;
$custom-light: #855ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d7c",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 271.579,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.36055,
    "c": 0.1512,
    "h": 303.5
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#4F1D7C
secondary
#78B045
accent
#E54390
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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