#4F1672#4F1672

#4F1672 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.149 H 308.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4F1672
RGBrgb(79, 22, 114)
HSLhsl(277, 68%, 27%)
HSVhsv(277, 81%, 45%)
CMYKcmyk(30.7%, 80.7%, 0%, 55.3%)
CIE-LABlab(21.77, 42.18, -40.94)
CIE-LCHlch(21.77, 58.79, 315.85°)
OKLaboklab(34.46% 0.0925 -0.1163)
OKLCHoklch(34.46% 0.149 308.5)
XYZxyz(6.5480, 3.4511, 16.2375)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1672 #397216
analogous
#211672 #4F1672 #721667
triadic
#4F1672 #724F16 #16724F
tetradic
#4F1672 #722116 #397216 #166772
square
#4F1672 #722116 #397216 #166772
split-complementary
#4F1672 #677216 #167221
monochromatic
#12051A #2B0C3F #4F1672 #7320A5 #962CD6

Accessibility & contrast

On white

12.42
#4F1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4F1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1672
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1672#FFFFFF#000000##FFFFFF
##4F16721.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#492D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1672;
/* rgb */ color: rgb(79, 22, 114);
/* oklch */ color: oklch(34.5% 0.149 308.5);
Tailwind
colors: {
  custom: {
    50: '#845a9b',
    500: '#4f1672',
    950: '#000000',
  },
}
SCSS
$custom: #4f1672;
$custom-light: #845a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1672",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 277.174,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34462,
    "c": 0.1486,
    "h": 308.5
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#4F1672
secondary
#65A83C
accent
#EB3D7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1672

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

Preview Lab → · Contrast checker → · Palette generator →

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