#4F1173#4F1173

#4F1173 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.155 H 308.6°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4F1173
RGBrgb(79, 17, 115)
HSLhsl(278, 74%, 26%)
HSVhsv(278, 85%, 45%)
CMYKcmyk(31.3%, 85.2%, 0%, 54.9%)
CIE-LABlab(21.21, 44.27, -42.49)
CIE-LCHlch(21.21, 61.36, 316.18°)
OKLaboklab(34.1% 0.0965 -0.1208)
OKLCHoklch(34.1% 0.155 308.6)
XYZxyz(6.5188, 3.3011, 16.5101)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1173 #357311
analogous
#1E1173 #4F1173 #731166
triadic
#4F1173 #734F11 #11734F
tetradic
#4F1173 #731E11 #357311 #116673
square
#4F1173 #731E11 #357311 #116673
split-complementary
#4F1173 #667311 #11731E
monochromatic
#12041B #2A093E #4F1173 #7419A8 #9821DE

Accessibility & contrast

On white

12.65
#4F1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1173
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1173#FFFFFF#000000##FFFFFF
##4F11731.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#492B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1173;
/* rgb */ color: rgb(79, 17, 115);
/* oklch */ color: oklch(34.1% 0.155 308.6);
Tailwind
colors: {
  custom: {
    50: '#85589c',
    500: '#4f1173',
    950: '#000000',
  },
}
SCSS
$custom: #4f1173;
$custom-light: #85589c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1173",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 277.959,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.341,
    "c": 0.15462,
    "h": 308.6
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#4F1173
secondary
#60AA36
accent
#F1377B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1173

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

Preview Lab → · Contrast checker → · Palette generator →

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