#4F166E#4F166E

#4F166E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.144 H 310.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#4F166E
RGBrgb(79, 22, 110)
HSLhsl(279, 67%, 26%)
HSVhsv(279, 80%, 43%)
CMYKcmyk(28.2%, 80%, 0%, 56.9%)
CIE-LABlab(21.44, 41.25, -38.89)
CIE-LCHlch(21.44, 56.69, 316.68°)
OKLaboklab(34.13% 0.0934 -0.1103)
OKLCHoklch(34.13% 0.145 310.3)
XYZxyz(6.3253, 3.3620, 15.0646)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F166E #356E16
analogous
#23166E #4F166E #6E1661
triadic
#4F166E #6E4F16 #166E4F
tetradic
#4F166E #6E2316 #356E16 #16616E
square
#4F166E #6E2316 #356E16 #16616E
split-complementary
#4F166E #616E16 #166E23
monochromatic
#12051A #2A0C3B #4F166E #7420A1 #982AD4

Accessibility & contrast

On white

12.56
#4F166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F166E
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F166E#FFFFFF#000000##FFFFFF
##4F166E1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#4B2B41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f166e;
/* rgb */ color: rgb(79, 22, 110);
/* oklch */ color: oklch(34.1% 0.144 310.3);
Tailwind
colors: {
  custom: {
    50: '#845a98',
    500: '#4f166e',
    950: '#000000',
  },
}
SCSS
$custom: #4f166e;
$custom-light: #845a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4f166e",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 278.864,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34129,
    "c": 0.1445,
    "h": 310.3
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#4F166E
secondary
#60A43C
accent
#EA3E7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F166E

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

Preview Lab → · Contrast checker → · Palette generator →

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