#4F186D#4F186D

#4F186D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.141 H 310.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4F186D
RGBrgb(79, 24, 109)
HSLhsl(279, 64%, 26%)
HSVhsv(279, 78%, 43%)
CMYKcmyk(27.5%, 78%, 0%, 57.3%)
CIE-LABlab(21.65, 40.17, -37.90)
CIE-LCHlch(21.65, 55.23, 316.67°)
OKLaboklab(34.25% 0.0916 -0.1073)
OKLCHoklch(34.25% 0.141 310.5)
XYZxyz(6.3109, 3.4198, 14.7927)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F186D #366D18
analogous
#24186D #4F186D #6D1860
triadic
#4F186D #6D4F18 #186D4F
tetradic
#4F186D #6D2418 #366D18 #18606D
square
#4F186D #6D2418 #366D18 #18606D
split-complementary
#4F186D #606D18 #186D24
monochromatic
#120619 #2B0D3B #4F186D #73239F #982ED1

Accessibility & contrast

On white

12.47
#4F186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F186D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F186D#FFFFFF#000000##FFFFFF
##4F186D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#06356B
Tritanopia (blue-blind)
#4B2C41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f186d;
/* rgb */ color: rgb(79, 24, 109);
/* oklch */ color: oklch(34.3% 0.141 310.5);
Tailwind
colors: {
  custom: {
    50: '#845b97',
    500: '#4f186d',
    950: '#000000',
  },
}
SCSS
$custom: #4f186d;
$custom-light: #845b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f186d",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 278.824,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34254,
    "c": 0.14112,
    "h": 310.5
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#4F186D
secondary
#62A33E
accent
#E7417B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F186D

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

Preview Lab → · Contrast checker → · Palette generator →

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