#4F167B#4F167B

#4F167B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 304.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4F167B
RGBrgb(79, 22, 123)
HSLhsl(274, 70%, 28%)
HSVhsv(274, 82%, 48%)
CMYKcmyk(35.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(22.54, 44.33, -45.46)
CIE-LCHlch(22.54, 63.50, 314.28°)
OKLaboklab(35.24% 0.0901 -0.1295)
OKLCHoklch(35.24% 0.158 304.8)
XYZxyz(7.0857, 3.6662, 19.0694)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F167B #427B16
analogous
#1C167B #4F167B #7B1674
triadic
#4F167B #7B4F16 #167B4F
tetradic
#4F167B #7B1C16 #427B16 #16747B
square
#4F167B #7B1C16 #427B16 #16747B
split-complementary
#4F167B #747B16 #167B1C
monochromatic
#11051A #2E0D47 #4F167B #701FAF #9131DA

Accessibility & contrast

On white

12.12
#4F167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F167B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F167B#FFFFFF#000000##FFFFFF
##4F167B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#473149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f167b;
/* rgb */ color: rgb(79, 22, 123);
/* oklch */ color: oklch(35.2% 0.158 304.8);
Tailwind
colors: {
  custom: {
    50: '#855ba2',
    500: '#4f167b',
    950: '#000000',
  },
}
SCSS
$custom: #4f167b;
$custom-light: #855ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f167b",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 273.861,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.15783,
    "h": 304.8
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#4F167B
secondary
#6FB03D
accent
#EC3B89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F167B

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

Preview Lab → · Contrast checker → · Palette generator →

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