#4F167A#4F167A

#4F167A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.157 H 305.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4F167A
RGBrgb(79, 22, 122)
HSLhsl(274, 69%, 28%)
HSVhsv(274, 82%, 48%)
CMYKcmyk(35.2%, 82%, 0%, 52.2%)
CIE-LABlab(22.45, 44.09, -44.96)
CIE-LCHlch(22.45, 62.97, 314.44°)
OKLaboklab(35.15% 0.0904 -0.1281)
OKLCHoklch(35.15% 0.157 305.2)
XYZxyz(7.0234, 3.6413, 18.7414)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F167A #417A16
analogous
#1D167A #4F167A #7A1673
triadic
#4F167A #7A4F16 #167A4F
tetradic
#4F167A #7A1D16 #417A16 #16737A
square
#4F167A #7A1D16 #417A16 #16737A
split-complementary
#4F167A #737A16 #167A1D
monochromatic
#11051A #2D0D46 #4F167A #711FAE #9131DA

Accessibility & contrast

On white

12.15
#4F167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F167A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F167A#FFFFFF#000000##FFFFFF
##4F167A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#473048
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f167a;
/* rgb */ color: rgb(79, 22, 122);
/* oklch */ color: oklch(35.2% 0.157 305.2);
Tailwind
colors: {
  custom: {
    50: '#855ba1',
    500: '#4f167a',
    950: '#000000',
  },
}
SCSS
$custom: #4f167a;
$custom-light: #855ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f167a",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 274.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35152,
    "c": 0.1568,
    "h": 305.2
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#4F167A
secondary
#6EAF3D
accent
#EC3C88
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F167A

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

Preview Lab → · Contrast checker → · Palette generator →

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