#4F186C#4F186C

#4F186C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.140 H 310.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4F186C
RGBrgb(79, 24, 108)
HSLhsl(279, 64%, 26%)
HSVhsv(279, 78%, 42%)
CMYKcmyk(26.9%, 77.8%, 0%, 57.6%)
CIE-LABlab(21.57, 39.94, -37.38)
CIE-LCHlch(21.57, 54.70, 316.90°)
OKLaboklab(34.17% 0.0918 -0.1058)
OKLCHoklch(34.17% 0.14 310.9)
XYZxyz(6.2573, 3.3984, 14.5108)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F186C #356C18
analogous
#25186C #4F186C #6C185F
triadic
#4F186C #6C4F18 #186C4F
tetradic
#4F186C #6C2518 #356C18 #185F6C
square
#4F186C #6C2518 #356C18 #185F6C
split-complementary
#4F186C #5F6C18 #186C25
monochromatic
#120619 #2A0D3A #4F186C #74239E #982ED0

Accessibility & contrast

On white

12.50
#4F186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4F186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F186C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F186C#FFFFFF#000000##FFFFFF
##4F186C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#08356A
Tritanopia (blue-blind)
#4B2B41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f186c;
/* rgb */ color: rgb(79, 24, 108);
/* oklch */ color: oklch(34.2% 0.140 310.9);
Tailwind
colors: {
  custom: {
    50: '#845b97',
    500: '#4f186c',
    950: '#000000',
  },
}
SCSS
$custom: #4f186c;
$custom-light: #845b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f186c",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 279.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34174,
    "c": 0.14008,
    "h": 310.9
  },
  "luminance": 0.03398
}

Semantic roles & 50–950 ramp

primary
#4F186C
secondary
#60A23E
accent
#E7417A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F186C

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

Preview Lab → · Contrast checker → · Palette generator →

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