#4F1670#4F1670

#4F1670 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.147 H 309.4°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4F1670
RGBrgb(79, 22, 112)
HSLhsl(278, 67%, 26%)
HSVhsv(278, 80%, 44%)
CMYKcmyk(29.5%, 80.4%, 0%, 56.1%)
CIE-LABlab(21.60, 41.71, -39.92)
CIE-LCHlch(21.60, 57.74, 316.26°)
OKLaboklab(34.29% 0.093 -0.1133)
OKLCHoklch(34.29% 0.147 309.4)
XYZxyz(6.4354, 3.4061, 15.6445)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1670 #377016
analogous
#221670 #4F1670 #701664
triadic
#4F1670 #704F16 #16704F
tetradic
#4F1670 #702216 #377016 #166470
square
#4F1670 #702216 #377016 #166470
split-complementary
#4F1670 #647016 #167022
monochromatic
#12051A #2B0C3D #4F1670 #7320A3 #972BD5

Accessibility & contrast

On white

12.49
#4F1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4F1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1670
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1670#FFFFFF#000000##FFFFFF
##4F16701.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4A2C42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1670;
/* rgb */ color: rgb(79, 22, 112);
/* oklch */ color: oklch(34.3% 0.147 309.4);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4f1670',
    950: '#000000',
  },
}
SCSS
$custom: #4f1670;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1670",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 278,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.14655,
    "h": 309.4
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#4F1670
secondary
#63A63C
accent
#EA3E7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1670

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

Preview Lab → · Contrast checker → · Palette generator →

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