#4F2871#4F2871

#4F2871 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.123 H 305.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4F2871
RGBrgb(79, 40, 113)
HSLhsl(272, 48%, 30%)
HSVhsv(272, 65%, 44%)
CMYKcmyk(30.1%, 64.6%, 0%, 55.7%)
CIE-LABlab(24.87, 33.07, -35.29)
CIE-LCHlch(24.87, 48.37, 313.14°)
OKLaboklab(36.65% 0.072 -0.0998)
OKLCHoklch(36.65% 0.123 305.8)
XYZxyz(6.9632, 4.3722, 16.0967)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2871 #4A7128
analogous
#2B2871 #4F2871 #71286E
triadic
#4F2871 #714F28 #28714F
tetradic
#4F2871 #712B28 #4A7128 #286E71
square
#4F2871 #712B28 #4A7128 #286E71
split-complementary
#4F2871 #6E7128 #28712B
monochromatic
#100817 #2F1844 #4F2871 #6F389E #8E52C2

Accessibility & contrast

On white

11.20
#4F2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2871
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2871#FFFFFF#000000##FFFFFF
##4F28711.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013A73
Deuteranopia (green-blind)
#183B6F
Tritanopia (blue-blind)
#493748
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2871;
/* rgb */ color: rgb(79, 40, 113);
/* oklch */ color: oklch(36.7% 0.123 305.8);
Tailwind
colors: {
  custom: {
    50: '#83649a',
    500: '#4f2871',
    950: '#000000',
  },
}
SCSS
$custom: #4f2871;
$custom-light: #83649a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2871",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 272.055,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.36652,
    "c": 0.12304,
    "h": 305.8
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#4F2871
secondary
#78A352
accent
#D7508F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4F2871

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

Preview Lab → · Contrast checker → · Palette generator →

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