#4F168F#4F168F

#4F168F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.178 H 298.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#4F168F
RGBrgb(79, 22, 143)
HSLhsl(268, 73%, 32%)
HSVhsv(268, 85%, 56%)
CMYKcmyk(44.8%, 84.6%, 0%, 43.9%)
CIE-LABlab(24.38, 49.25, -55.01)
CIE-LCHlch(24.38, 73.83, 311.84°)
OKLaboklab(37.09% 0.0836 -0.1576)
OKLCHoklch(37.09% 0.178 298)
XYZxyz(8.4680, 4.2191, 26.3495)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F168F #568F16
analogous
#161A8F #4F168F #8B168F
triadic
#4F168F #8F4F16 #168F4F
tetradic
#4F168F #8F161A #568F16 #168F8B
square
#4F168F #8F161A #568F16 #168F8B
split-complementary
#4F168F #8F8B16 #1A8F16
monochromatic
#140625 #320E5A #4F168F #6C1EC4 #8B3EE1

Accessibility & contrast

On white

11.39
#4F168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F168F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F168F#FFFFFF#000000##FFFFFF
##4F168F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3E3A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f168f;
/* rgb */ color: rgb(79, 22, 143);
/* oklch */ color: oklch(37.1% 0.178 298.0);
Tailwind
colors: {
  custom: {
    50: '#885cb1',
    500: '#4f168f',
    950: '#000000',
  },
}
SCSS
$custom: #4f168f;
$custom-light: #885cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f168f",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 268.264,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37089,
    "c": 0.1784,
    "h": 298
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#4F168F
secondary
#84C13F
accent
#F03899
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F168F

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

Preview Lab → · Contrast checker → · Palette generator →

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