#4F167C#4F167C

#4F167C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.159 H 304.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4F167C
RGBrgb(79, 22, 124)
HSLhsl(274, 70%, 29%)
HSVhsv(274, 82%, 49%)
CMYKcmyk(36.3%, 82.3%, 0%, 51.4%)
CIE-LABlab(22.62, 44.58, -45.95)
CIE-LCHlch(22.62, 64.02, 314.13°)
OKLaboklab(35.33% 0.0899 -0.131)
OKLCHoklch(35.33% 0.159 304.5)
XYZxyz(7.1486, 3.6913, 19.4008)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F167C #437C16
analogous
#1C167C #4F167C #7C1676
triadic
#4F167C #7C4F16 #167C4F
tetradic
#4F167C #7C1C16 #437C16 #16767C
square
#4F167C #7C1C16 #437C16 #16767C
split-complementary
#4F167C #767C16 #167C1C
monochromatic
#11051A #2E0D48 #4F167C #701FB0 #9032DB

Accessibility & contrast

On white

12.08
#4F167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F167C
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F167C#FFFFFF#000000##FFFFFF
##4F167C1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#463149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f167c;
/* rgb */ color: rgb(79, 22, 124);
/* oklch */ color: oklch(35.3% 0.159 304.5);
Tailwind
colors: {
  custom: {
    50: '#855ba3',
    500: '#4f167c',
    950: '#000000',
  },
}
SCSS
$custom: #4f167c;
$custom-light: #855ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f167c",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 273.529,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35329,
    "c": 0.15886,
    "h": 304.5
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#4F167C
secondary
#70B13D
accent
#ED3B89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F167C

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

Preview Lab → · Contrast checker → · Palette generator →

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