#4F156F#4F156F

#4F156F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.147 H 309.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#4F156F
RGBrgb(79, 21, 111)
HSLhsl(279, 68%, 26%)
HSVhsv(279, 81%, 44%)
CMYKcmyk(28.8%, 81.1%, 0%, 56.5%)
CIE-LABlab(21.38, 41.88, -39.63)
CIE-LCHlch(21.38, 57.66, 316.58°)
OKLaboklab(34.11% 0.0941 -0.1124)
OKLCHoklch(34.11% 0.147 309.9)
XYZxyz(6.3613, 3.3464, 15.3467)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F156F #356F15
analogous
#22156F #4F156F #6F1562
triadic
#4F156F #6F4F15 #156F4F
tetradic
#4F156F #6F2215 #356F15 #15626F
square
#4F156F #6F2215 #356F15 #15626F
split-complementary
#4F156F #626F15 #156F22
monochromatic
#12051A #2A0B3C #4F156F #741FA2 #9828D6

Accessibility & contrast

On white

12.58
#4F156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F156F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F156F#FFFFFF#000000##FFFFFF
##4F156F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#4A2B42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f156f;
/* rgb */ color: rgb(79, 21, 111);
/* oklch */ color: oklch(34.1% 0.147 309.9);
Tailwind
colors: {
  custom: {
    50: '#845a99',
    500: '#4f156f',
    950: '#000000',
  },
}
SCSS
$custom: #4f156f;
$custom-light: #845a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4f156f",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 278.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.14663,
    "h": 309.9
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#4F156F
secondary
#60A53A
accent
#EB3D7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F156F

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

Preview Lab → · Contrast checker → · Palette generator →

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