#4F167D#4F167D

#4F167D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.160 H 304.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4F167D
RGBrgb(79, 22, 125)
HSLhsl(273, 70%, 29%)
HSVhsv(273, 82%, 49%)
CMYKcmyk(36.8%, 82.4%, 0%, 51%)
CIE-LABlab(22.71, 44.82, -46.44)
CIE-LCHlch(22.71, 64.54, 313.98°)
OKLaboklab(35.42% 0.0896 -0.1324)
OKLCHoklch(35.42% 0.16 304.1)
XYZxyz(7.2122, 3.7168, 19.7355)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F167D #447D16
analogous
#1C167D #4F167D #7D1678
triadic
#4F167D #7D4F16 #167D4F
tetradic
#4F167D #7D1C16 #447D16 #16787D
square
#4F167D #7D1C16 #447D16 #16787D
split-complementary
#4F167D #787D16 #167D1C
monochromatic
#10051A #2E0D49 #4F167D #701FB1 #9032DB

Accessibility & contrast

On white

12.05
#4F167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F167D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F167D#FFFFFF#000000##FFFFFF
##4F167D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#46324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f167d;
/* rgb */ color: rgb(79, 22, 125);
/* oklch */ color: oklch(35.4% 0.160 304.1);
Tailwind
colors: {
  custom: {
    50: '#865ba3',
    500: '#4f167d',
    950: '#000000',
  },
}
SCSS
$custom: #4f167d;
$custom-light: #865ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f167d",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 273.204,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35418,
    "c": 0.15988,
    "h": 304.1
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#4F167D
secondary
#71B23D
accent
#ED3B8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F167D

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

Preview Lab → · Contrast checker → · Palette generator →

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