#4F186F#4F186F

#4F186F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.143 H 309.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4F186F
RGBrgb(79, 24, 111)
HSLhsl(278, 64%, 26%)
HSVhsv(278, 78%, 44%)
CMYKcmyk(28.8%, 78.4%, 0%, 56.5%)
CIE-LABlab(21.81, 40.64, -38.94)
CIE-LCHlch(21.81, 56.28, 316.23°)
OKLaboklab(34.42% 0.0912 -0.1104)
OKLCHoklch(34.42% 0.143 309.6)
XYZxyz(6.4198, 3.4634, 15.3662)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F186F #386F18
analogous
#24186F #4F186F #6F1864
triadic
#4F186F #6F4F18 #186F4F
tetradic
#4F186F #6F2418 #386F18 #18646F
square
#4F186F #6F2418 #386F18 #18646F
split-complementary
#4F186F #646F18 #186F24
monochromatic
#120519 #2B0D3D #4F186F #7323A1 #962FD2

Accessibility & contrast

On white

12.41
#4F186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4F186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F186F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F186F#FFFFFF#000000##FFFFFF
##4F186F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#4A2D42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f186f;
/* rgb */ color: rgb(79, 24, 111);
/* oklch */ color: oklch(34.4% 0.143 309.6);
Tailwind
colors: {
  custom: {
    50: '#845b99',
    500: '#4f186f',
    950: '#000000',
  },
}
SCSS
$custom: #4f186f;
$custom-light: #845b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4f186f",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 277.931,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.14321,
    "h": 309.6
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#4F186F
secondary
#64A53E
accent
#E7407E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F186F

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

Preview Lab → · Contrast checker → · Palette generator →

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