#4F1871#4F1871

#4F1871 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.145 H 308.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4F1871
RGBrgb(79, 24, 113)
HSLhsl(277, 65%, 27%)
HSVhsv(277, 79%, 44%)
CMYKcmyk(30.1%, 78.8%, 0%, 55.7%)
CIE-LABlab(21.97, 41.12, -39.97)
CIE-LCHlch(21.97, 57.34, 315.82°)
OKLaboklab(34.58% 0.0908 -0.1134)
OKLCHoklch(34.58% 0.145 308.7)
XYZxyz(6.5311, 3.5079, 15.9526)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1871 #3A7118
analogous
#231871 #4F1871 #711867
triadic
#4F1871 #714F18 #18714F
tetradic
#4F1871 #712318 #3A7118 #186771
square
#4F1871 #712318 #3A7118 #186771
split-complementary
#4F1871 #677118 #187123
monochromatic
#120519 #2C0D3F #4F1871 #7223A3 #9530D3

Accessibility & contrast

On white

12.34
#4F1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1871
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1871#FFFFFF#000000##FFFFFF
##4F18711.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4A2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1871;
/* rgb */ color: rgb(79, 24, 113);
/* oklch */ color: oklch(34.6% 0.145 308.7);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4f1871',
    950: '#000000',
  },
}
SCSS
$custom: #4f1871;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1871",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 277.079,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34582,
    "c": 0.1453,
    "h": 308.7
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#4F1871
secondary
#66A63E
accent
#E84080
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1871

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

Preview Lab → · Contrast checker → · Palette generator →

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