#4F1977#4F1977

#4F1977 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.150 H 306.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4F1977
RGBrgb(79, 25, 119)
HSLhsl(274, 65%, 28%)
HSVhsv(274, 79%, 47%)
CMYKcmyk(33.6%, 79%, 0%, 53.3%)
CIE-LABlab(22.62, 42.14, -42.77)
CIE-LCHlch(22.62, 60.04, 314.57°)
OKLaboklab(35.19% 0.0885 -0.1217)
OKLCHoklch(35.19% 0.15 306)
XYZxyz(6.9011, 3.6895, 17.7978)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1977 #417719
analogous
#201977 #4F1977 #771970
triadic
#4F1977 #774F19 #19774F
tetradic
#4F1977 #772019 #417719 #197077
square
#4F1977 #772019 #417719 #197077
split-complementary
#4F1977 #707719 #197720
monochromatic
#110519 #2D0E44 #4F1977 #7124AA #9136D5

Accessibility & contrast

On white

12.08
#4F1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1977
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1977#FFFFFF#000000##FFFFFF
##4F19771.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1977;
/* rgb */ color: rgb(79, 25, 119);
/* oklch */ color: oklch(35.2% 0.150 306.0);
Tailwind
colors: {
  custom: {
    50: '#855c9f',
    500: '#4f1977',
    950: '#000000',
  },
}
SCSS
$custom: #4f1977;
$custom-light: #855c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1977",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 274.468,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3519,
    "c": 0.15046,
    "h": 306
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#4F1977
secondary
#6EAC40
accent
#E84087
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1977

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

Preview Lab → · Contrast checker → · Palette generator →

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