#4F168D#4F168D

#4F168D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.176 H 298.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4F168D
RGBrgb(79, 22, 141)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(44%, 84.4%, 0%, 44.7%)
CIE-LABlab(24.19, 48.75, -54.08)
CIE-LCHlch(24.19, 72.81, 312.03°)
OKLaboklab(36.9% 0.0844 -0.1549)
OKLCHoklch(36.9% 0.176 298.6)
XYZxyz(8.3178, 4.1590, 25.5587)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F168D #548D16
analogous
#16198D #4F168D #8A168D
triadic
#4F168D #8D4F16 #168D4F
tetradic
#4F168D #8D1619 #548D16 #168D8A
square
#4F168D #8D1619 #548D16 #168D8A
split-complementary
#4F168D #8D8A16 #198D16
monochromatic
#140523 #310E58 #4F168D #6D1EC2 #8B3DE1

Accessibility & contrast

On white

11.46
#4F168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4F168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F168D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F168D#FFFFFF#000000##FFFFFF
##4F168D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3F3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f168d;
/* rgb */ color: rgb(79, 22, 141);
/* oklch */ color: oklch(36.9% 0.176 298.6);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4f168d',
    950: '#000000',
  },
}
SCSS
$custom: #4f168d;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f168d",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 268.739,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36897,
    "c": 0.17634,
    "h": 298.6
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#4F168D
secondary
#82C13E
accent
#F03898
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F168D

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

Preview Lab → · Contrast checker → · Palette generator →

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