#4F1976#4F1976

#4F1976 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.149 H 306.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4F1976
RGBrgb(79, 25, 118)
HSLhsl(275, 65%, 28%)
HSVhsv(275, 79%, 46%)
CMYKcmyk(33.1%, 78.8%, 0%, 53.7%)
CIE-LABlab(22.53, 41.90, -42.27)
CIE-LCHlch(22.53, 59.51, 314.75°)
OKLaboklab(35.1% 0.0887 -0.1202)
OKLCHoklch(35.1% 0.149 306.4)
XYZxyz(6.8414, 3.6656, 17.4831)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1976 #407619
analogous
#211976 #4F1976 #76196E
triadic
#4F1976 #764F19 #19764F
tetradic
#4F1976 #762119 #407619 #196E76
square
#4F1976 #762119 #407619 #196E76
split-complementary
#4F1976 #6E7619 #197621
monochromatic
#110519 #2D0E43 #4F1976 #7124A8 #9235D4

Accessibility & contrast

On white

12.12
#4F1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1976
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1976#FFFFFF#000000##FFFFFF
##4F19761.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1976;
/* rgb */ color: rgb(79, 25, 118);
/* oklch */ color: oklch(35.1% 0.149 306.4);
Tailwind
colors: {
  custom: {
    50: '#855c9e',
    500: '#4f1976',
    950: '#000000',
  },
}
SCSS
$custom: #4f1976;
$custom-light: #855c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1976",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 274.839,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35105,
    "c": 0.1494,
    "h": 306.4
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#4F1976
secondary
#6DAB40
accent
#E84086
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1976

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

Preview Lab → · Contrast checker → · Palette generator →

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