#4F1F79#4F1F79

#4F1F79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.145 H 304.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4F1F79
RGBrgb(79, 31, 121)
HSLhsl(272, 59%, 30%)
HSVhsv(272, 74%, 47%)
CMYKcmyk(34.7%, 74.4%, 0%, 52.5%)
CIE-LABlab(23.75, 39.89, -42.21)
CIE-LCHlch(23.75, 58.08, 313.38°)
OKLaboklab(36.04% 0.082 -0.1201)
OKLCHoklch(36.04% 0.145 304.3)
XYZxyz(7.1648, 4.0227, 18.4845)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F79 #49791F
analogous
#221F79 #4F1F79 #791F76
triadic
#4F1F79 #794F1F #1F794F
tetradic
#4F1F79 #79221F #49791F #1F7679
square
#4F1F79 #79221F #49791F #1F7679
split-complementary
#4F1F79 #76791F #1F7922
monochromatic
#100618 #2F1348 #4F1F79 #6F2BAA #8E43CF

Accessibility & contrast

On white

11.64
#4F1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1F79
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F79#FFFFFF#000000##FFFFFF
##4F1F791.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#47344A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1f79;
/* rgb */ color: rgb(79, 31, 121);
/* oklch */ color: oklch(36.0% 0.145 304.3);
Tailwind
colors: {
  custom: {
    50: '#855fa0',
    500: '#4f1f79',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f79;
$custom-light: #855fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f79",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 272,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3604,
    "c": 0.14539,
    "h": 304.3
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#4F1F79
secondary
#77AC47
accent
#E2458F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4F1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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