#4F1876#4F1876

#4F1876 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.151 H 306.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4F1876
RGBrgb(79, 24, 118)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 80%, 46%)
CMYKcmyk(33.1%, 79.7%, 0%, 53.7%)
CIE-LABlab(22.39, 42.32, -42.51)
CIE-LCHlch(22.39, 59.98, 314.87°)
OKLaboklab(35% 0.0897 -0.1209)
OKLCHoklch(35% 0.151 306.6)
XYZxyz(6.8204, 3.6236, 17.4761)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1876 #3F7618
analogous
#201876 #4F1876 #76186E
triadic
#4F1876 #764F18 #18764F
tetradic
#4F1876 #762018 #3F7618 #186E76
square
#4F1876 #762018 #3F7618 #186E76
split-complementary
#4F1876 #6E7618 #187620
monochromatic
#110519 #2D0E43 #4F1876 #7122A9 #9233D5

Accessibility & contrast

On white

12.18
#4F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1876
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1876#FFFFFF#000000##FFFFFF
##4F18761.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#483046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1876;
/* rgb */ color: rgb(79, 24, 118);
/* oklch */ color: oklch(35.0% 0.151 306.6);
Tailwind
colors: {
  custom: {
    50: '#855c9e',
    500: '#4f1876',
    950: '#000000',
  },
}
SCSS
$custom: #4f1876;
$custom-light: #855c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1876",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 275.106,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35002,
    "c": 0.15053,
    "h": 306.6
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#4F1876
secondary
#6CAB3F
accent
#E93F85
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1876

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

Preview Lab → · Contrast checker → · Palette generator →

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