#4F168E#4F168E

#4F168E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.177 H 298.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4F168E
RGBrgb(79, 22, 142)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 85%, 56%)
CMYKcmyk(44.4%, 84.5%, 0%, 44.3%)
CIE-LABlab(24.29, 49.00, -54.54)
CIE-LCHlch(24.29, 73.32, 311.94°)
OKLaboklab(36.99% 0.084 -0.1562)
OKLCHoklch(36.99% 0.177 298.3)
XYZxyz(8.3926, 4.1889, 25.9523)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F168E #558E16
analogous
#16198E #4F168E #8B168E
triadic
#4F168E #8E4F16 #168E4F
tetradic
#4F168E #8E1619 #558E16 #168E8B
square
#4F168E #8E1619 #558E16 #168E8B
split-complementary
#4F168E #8E8B16 #198E16
monochromatic
#140624 #320E59 #4F168E #6C1EC3 #8B3DE1

Accessibility & contrast

On white

11.43
#4F168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F168E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F168E#FFFFFF#000000##FFFFFF
##4F168E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3F3954
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f168e;
/* rgb */ color: rgb(79, 22, 142);
/* oklch */ color: oklch(37.0% 0.177 298.3);
Tailwind
colors: {
  custom: {
    50: '#875cb0',
    500: '#4f168e',
    950: '#000000',
  },
}
SCSS
$custom: #4f168e;
$custom-light: #875cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f168e",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 268.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.17737,
    "h": 298.3
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#4F168E
secondary
#83C13F
accent
#F03898
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F168E

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

Preview Lab → · Contrast checker → · Palette generator →

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