#4F1877#4F1877

#4F1877 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.152 H 306.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4F1877
RGBrgb(79, 24, 119)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 80%, 47%)
CMYKcmyk(33.6%, 79.8%, 0%, 53.3%)
CIE-LABlab(22.47, 42.56, -43.01)
CIE-LCHlch(22.47, 60.51, 314.70°)
OKLaboklab(35.09% 0.0894 -0.1224)
OKLCHoklch(35.09% 0.152 306.2)
XYZxyz(6.8801, 3.6475, 17.7908)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1877 #407718
analogous
#1F1877 #4F1877 #77186F
triadic
#4F1877 #774F18 #18774F
tetradic
#4F1877 #771F18 #407718 #186F77
square
#4F1877 #771F18 #407718 #186F77
split-complementary
#4F1877 #6F7718 #18771F
monochromatic
#110519 #2D0E44 #4F1877 #7122AA #9233D6

Accessibility & contrast

On white

12.14
#4F1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1877
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1877#FFFFFF#000000##FFFFFF
##4F18771.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#483047
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1877;
/* rgb */ color: rgb(79, 24, 119);
/* oklch */ color: oklch(35.1% 0.152 306.2);
Tailwind
colors: {
  custom: {
    50: '#855c9f',
    500: '#4f1877',
    950: '#000000',
  },
}
SCSS
$custom: #4f1877;
$custom-light: #855c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1877",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 274.737,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35087,
    "c": 0.15158,
    "h": 306.2
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#4F1877
secondary
#6DAC3F
accent
#E93E86
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1877

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

Preview Lab → · Contrast checker → · Palette generator →

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