#4F167E#4F167E

#4F167E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.161 H 303.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#4F167E
RGBrgb(79, 22, 126)
HSLhsl(273, 70%, 29%)
HSVhsv(273, 83%, 49%)
CMYKcmyk(37.3%, 82.5%, 0%, 50.6%)
CIE-LABlab(22.80, 45.06, -46.93)
CIE-LCHlch(22.80, 65.06, 313.84°)
OKLaboklab(35.51% 0.0893 -0.1339)
OKLCHoklch(35.51% 0.161 303.7)
XYZxyz(7.2764, 3.7425, 20.0736)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F167E #457E16
analogous
#1B167E #4F167E #7E1679
triadic
#4F167E #7E4F16 #167E4F
tetradic
#4F167E #7E1B16 #457E16 #16797E
square
#4F167E #7E1B16 #457E16 #16797E
split-complementary
#4F167E #797E16 #167E1B
monochromatic
#10051A #2E0D4A #4F167E #701FB2 #8F33DB

Accessibility & contrast

On white

12.01
#4F167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F167E
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F167E#FFFFFF#000000##FFFFFF
##4F167E1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#45324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f167e;
/* rgb */ color: rgb(79, 22, 126);
/* oklch */ color: oklch(35.5% 0.161 303.7);
Tailwind
colors: {
  custom: {
    50: '#865ba4',
    500: '#4f167e',
    950: '#000000',
  },
}
SCSS
$custom: #4f167e;
$custom-light: #865ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f167e",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 272.885,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35507,
    "c": 0.16092,
    "h": 303.7
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#4F167E
secondary
#72B33D
accent
#ED3B8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F167E

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

Preview Lab → · Contrast checker → · Palette generator →

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