#4F2873#4F2873

#4F2873 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.126 H 304.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4F2873
RGBrgb(79, 40, 115)
HSLhsl(271, 48%, 30%)
HSVhsv(271, 65%, 45%)
CMYKcmyk(31.3%, 65.2%, 0%, 54.9%)
CIE-LABlab(25.01, 33.60, -36.35)
CIE-LCHlch(25.01, 49.50, 312.75°)
OKLaboklab(36.8% 0.0719 -0.1029)
OKLCHoklch(36.8% 0.126 304.9)
XYZxyz(7.0771, 4.4177, 16.6962)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2873 #4C7328
analogous
#292873 #4F2873 #732871
triadic
#4F2873 #734F28 #28734F
tetradic
#4F2873 #732928 #4C7328 #287173
square
#4F2873 #732928 #4C7328 #287173
split-complementary
#4F2873 #717328 #287329
monochromatic
#110818 #301846 #4F2873 #6E38A0 #8D52C3

Accessibility & contrast

On white

11.15
#4F2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2873
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2873#FFFFFF#000000##FFFFFF
##4F28731.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#163B71
Tritanopia (blue-blind)
#493849
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2873;
/* rgb */ color: rgb(79, 40, 115);
/* oklch */ color: oklch(36.8% 0.126 304.9);
Tailwind
colors: {
  custom: {
    50: '#83649c',
    500: '#4f2873',
    950: '#000000',
  },
}
SCSS
$custom: #4f2873;
$custom-light: #83649c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2873",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 271.2,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.368,
    "c": 0.12551,
    "h": 304.9
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#4F2873
secondary
#7AA552
accent
#D85091
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4F2873

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

Preview Lab → · Contrast checker → · Palette generator →

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