#4F168B#4F168B

#4F168B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.174 H 299.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4F168B
RGBrgb(79, 22, 139)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(43.2%, 84.2%, 0%, 45.5%)
CIE-LABlab(24.00, 48.26, -53.15)
CIE-LCHlch(24.00, 71.79, 312.24°)
OKLaboklab(36.71% 0.0851 -0.1521)
OKLCHoklch(36.71% 0.174 299.2)
XYZxyz(8.1704, 4.1000, 24.7820)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F168B #528B16
analogous
#16178B #4F168B #8A168B
triadic
#4F168B #8B4F16 #168B4F
tetradic
#4F168B #8B1617 #528B16 #168B8A
square
#4F168B #8B1617 #528B16 #168B8A
split-complementary
#4F168B #8B8A16 #178B16
monochromatic
#130521 #310E56 #4F168B #6D1EC0 #8C3BE0

Accessibility & contrast

On white

11.54
#4F168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F168B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F168B#FFFFFF#000000##FFFFFF
##4F168B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#403852
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f168b;
/* rgb */ color: rgb(79, 22, 139);
/* oklch */ color: oklch(36.7% 0.174 299.2);
Tailwind
colors: {
  custom: {
    50: '#875cae',
    500: '#4f168b',
    950: '#000000',
  },
}
SCSS
$custom: #4f168b;
$custom-light: #875cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f168b",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 269.231,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36707,
    "c": 0.17429,
    "h": 299.2
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#4F168B
secondary
#80BF3E
accent
#EF3896
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F168B

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

Preview Lab → · Contrast checker → · Palette generator →

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