#4F1176#4F1176

#4F1176 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.158 H 307.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4F1176
RGBrgb(79, 17, 118)
HSLhsl(277, 75%, 26%)
HSVhsv(277, 86%, 46%)
CMYKcmyk(33.1%, 85.6%, 0%, 53.7%)
CIE-LABlab(21.47, 44.96, -43.99)
CIE-LCHlch(21.47, 62.91, 315.62°)
OKLaboklab(34.36% 0.0956 -0.1252)
OKLCHoklch(34.36% 0.158 307.4)
XYZxyz(6.6942, 3.3713, 17.4341)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1176 #387611
analogous
#1D1176 #4F1176 #76116B
triadic
#4F1176 #764F11 #11764F
tetradic
#4F1176 #761D11 #387611 #116B76
square
#4F1176 #761D11 #387611 #116B76
split-complementary
#4F1176 #6B7611 #11761D
monochromatic
#12041B #2B0941 #4F1176 #7319AB #9622DF

Accessibility & contrast

On white

12.54
#4F1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F1176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1176
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1176#FFFFFF#000000##FFFFFF
##4F11761.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#482D45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1176;
/* rgb */ color: rgb(79, 17, 118);
/* oklch */ color: oklch(34.4% 0.158 307.4);
Tailwind
colors: {
  custom: {
    50: '#85599e',
    500: '#4f1176',
    950: '#000000',
  },
}
SCSS
$custom: #4f1176;
$custom-light: #85599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1176",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 276.832,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34364,
    "c": 0.15756,
    "h": 307.4
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#4F1176
secondary
#64AD36
accent
#F1367F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #4F1176

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

Preview Lab → · Contrast checker → · Palette generator →

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