#4F166C#4F166C

#4F166C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.142 H 311.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#4F166C
RGBrgb(79, 22, 108)
HSLhsl(280, 66%, 25%)
HSVhsv(280, 80%, 42%)
CMYKcmyk(26.9%, 79.6%, 0%, 57.6%)
CIE-LABlab(21.28, 40.78, -37.85)
CIE-LCHlch(21.28, 55.64, 317.13°)
OKLaboklab(33.97% 0.0938 -0.1072)
OKLCHoklch(33.97% 0.142 311.2)
XYZxyz(6.2176, 3.3189, 14.4975)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F166C #336C16
analogous
#24166C #4F166C #6C165E
triadic
#4F166C #6C4F16 #166C4F
tetradic
#4F166C #6C2416 #336C16 #165E6C
square
#4F166C #6C2416 #336C16 #165E6C
split-complementary
#4F166C #5E6C16 #166C24
monochromatic
#130519 #2A0C39 #4F166C #74209F #992BD2

Accessibility & contrast

On white

12.62
#4F166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F166C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F166C#FFFFFF#000000##FFFFFF
##4F166C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#05346A
Tritanopia (blue-blind)
#4B2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f166c;
/* rgb */ color: rgb(79, 22, 108);
/* oklch */ color: oklch(34.0% 0.142 311.2);
Tailwind
colors: {
  custom: {
    50: '#845a97',
    500: '#4f166c',
    950: '#000000',
  },
}
SCSS
$custom: #4f166c;
$custom-light: #845a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f166c",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 279.767,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33965,
    "c": 0.14246,
    "h": 311.2
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#4F166C
secondary
#5EA23C
accent
#E93F78
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F166C

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

Preview Lab → · Contrast checker → · Palette generator →

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