#4F1174#4F1174

#4F1174 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.156 H 308.2°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#4F1174
RGBrgb(79, 17, 116)
HSLhsl(278, 74%, 26%)
HSVhsv(278, 85%, 45%)
CMYKcmyk(31.9%, 85.3%, 0%, 54.5%)
CIE-LABlab(21.30, 44.50, -42.99)
CIE-LCHlch(21.30, 61.88, 315.99°)
OKLaboklab(34.19% 0.0962 -0.1223)
OKLCHoklch(34.19% 0.156 308.2)
XYZxyz(6.5766, 3.3242, 16.8148)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1174 #367411
analogous
#1D1174 #4F1174 #741167
triadic
#4F1174 #744F11 #11744F
tetradic
#4F1174 #741D11 #367411 #116774
square
#4F1174 #741D11 #367411 #116774
split-complementary
#4F1174 #677411 #11741D
monochromatic
#12041B #2B093F #4F1174 #7319A9 #9821DE

Accessibility & contrast

On white

12.61
#4F1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1174
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1174#FFFFFF#000000##FFFFFF
##4F11741.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#492C44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1174;
/* rgb */ color: rgb(79, 17, 116);
/* oklch */ color: oklch(34.2% 0.156 308.2);
Tailwind
colors: {
  custom: {
    50: '#85599d',
    500: '#4f1174',
    950: '#000000',
  },
}
SCSS
$custom: #4f1174;
$custom-light: #85599d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1174",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 277.576,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34188,
    "c": 0.1556,
    "h": 308.2
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#4F1174
secondary
#62AB36
accent
#F1377C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1174

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

Preview Lab → · Contrast checker → · Palette generator →

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