#4F167F#4F167F

#4F167F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.162 H 303.3°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4F167F
RGBrgb(79, 22, 127)
HSLhsl(273, 70%, 29%)
HSVhsv(273, 83%, 50%)
CMYKcmyk(37.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(22.89, 45.30, -47.42)
CIE-LCHlch(22.89, 65.58, 313.69°)
OKLaboklab(35.6% 0.089 -0.1353)
OKLCHoklch(35.6% 0.162 303.3)
XYZxyz(7.3412, 3.7684, 20.4152)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F167F #467F16
analogous
#1A167F #4F167F #7F167B
triadic
#4F167F #7F4F16 #167F4F
tetradic
#4F167F #7F1A16 #467F16 #167B7F
square
#4F167F #7F1A16 #467F16 #167B7F
split-complementary
#4F167F #7B7F16 #167F1A
monochromatic
#10051A #2F0D4B #4F167F #6F1FB3 #8F34DC

Accessibility & contrast

On white

11.98
#4F167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4F167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F167F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F167F#FFFFFF#000000##FFFFFF
##4F167F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#45334B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f167f;
/* rgb */ color: rgb(79, 22, 127);
/* oklch */ color: oklch(35.6% 0.162 303.3);
Tailwind
colors: {
  custom: {
    50: '#865ba5',
    500: '#4f167f',
    950: '#000000',
  },
}
SCSS
$custom: #4f167f;
$custom-light: #865ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f167f",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 272.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35597,
    "c": 0.16195,
    "h": 303.3
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#4F167F
secondary
#73B43D
accent
#ED3B8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F167F

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

Preview Lab → · Contrast checker → · Palette generator →

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