#4F168C#4F168C

#4F168C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.175 H 298.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4F168C
RGBrgb(79, 22, 140)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(43.6%, 84.3%, 0%, 45.1%)
CIE-LABlab(24.09, 48.50, -53.61)
CIE-LCHlch(24.09, 72.30, 312.14°)
OKLaboklab(36.8% 0.0847 -0.1535)
OKLCHoklch(36.8% 0.175 298.9)
XYZxyz(8.2438, 4.1294, 25.1686)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F168C #538C16
analogous
#16188C #4F168C #8A168C
triadic
#4F168C #8C4F16 #168C4F
tetradic
#4F168C #8C1618 #538C16 #168C8A
square
#4F168C #8C1618 #538C16 #168C8A
split-complementary
#4F168C #8C8A16 #188C16
monochromatic
#130522 #310E57 #4F168C #6D1EC1 #8B3CE0

Accessibility & contrast

On white

11.50
#4F168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F168C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F168C#FFFFFF#000000##FFFFFF
##4F168C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#403853
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f168c;
/* rgb */ color: rgb(79, 22, 140);
/* oklch */ color: oklch(36.8% 0.175 298.9);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4f168c',
    950: '#000000',
  },
}
SCSS
$custom: #4f168c;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f168c",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 268.983,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36802,
    "c": 0.17532,
    "h": 298.9
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#4F168C
secondary
#81C03E
accent
#F03897
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F168C

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

Preview Lab → · Contrast checker → · Palette generator →

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