#4F1872#4F1872

#4F1872 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.146 H 308.2°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4F1872
RGBrgb(79, 24, 114)
HSLhsl(277, 65%, 27%)
HSVhsv(277, 79%, 45%)
CMYKcmyk(30.7%, 78.9%, 0%, 55.3%)
CIE-LABlab(22.05, 41.36, -40.48)
CIE-LCHlch(22.05, 57.87, 315.62°)
OKLaboklab(34.67% 0.0906 -0.1149)
OKLCHoklch(34.67% 0.146 308.2)
XYZxyz(6.5877, 3.5305, 16.2507)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1872 #3B7218
analogous
#221872 #4F1872 #721868
triadic
#4F1872 #724F18 #18724F
tetradic
#4F1872 #722218 #3B7218 #186872
square
#4F1872 #722218 #3B7218 #186872
split-complementary
#4F1872 #687218 #187222
monochromatic
#120519 #2C0D3F #4F1872 #7223A5 #9431D4

Accessibility & contrast

On white

12.31
#4F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1872
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1872#FFFFFF#000000##FFFFFF
##4F18721.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#492E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1872;
/* rgb */ color: rgb(79, 24, 114);
/* oklch */ color: oklch(34.7% 0.146 308.2);
Tailwind
colors: {
  custom: {
    50: '#845b9b',
    500: '#4f1872',
    950: '#000000',
  },
}
SCSS
$custom: #4f1872;
$custom-light: #845b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1872",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 276.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34665,
    "c": 0.14635,
    "h": 308.2
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#4F1872
secondary
#67A73E
accent
#E84081
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1872

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

Preview Lab → · Contrast checker → · Palette generator →

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