#4F156D#4F156D

#4F156D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 310.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4F156D
RGBrgb(79, 21, 109)
HSLhsl(280, 68%, 25%)
HSVhsv(280, 81%, 43%)
CMYKcmyk(27.5%, 80.7%, 0%, 57.3%)
CIE-LABlab(21.22, 41.42, -38.60)
CIE-LCHlch(21.22, 56.62, 317.01°)
OKLaboklab(33.95% 0.0946 -0.1094)
OKLCHoklch(33.95% 0.145 310.8)
XYZxyz(6.2524, 3.3029, 14.7732)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F156D #336D15
analogous
#23156D #4F156D #6D155F
triadic
#4F156D #6D4F15 #156D4F
tetradic
#4F156D #6D2315 #336D15 #155F6D
square
#4F156D #6D2315 #336D15 #155F6D
split-complementary
#4F156D #5F6D15 #156D23
monochromatic
#13051A #2A0B3A #4F156D #741FA0 #9929D4

Accessibility & contrast

On white

12.65
#4F156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F156D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F156D#FFFFFF#000000##FFFFFF
##4F156D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#01346B
Tritanopia (blue-blind)
#4B2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f156d;
/* rgb */ color: rgb(79, 21, 109);
/* oklch */ color: oklch(33.9% 0.145 310.8);
Tailwind
colors: {
  custom: {
    50: '#845a97',
    500: '#4f156d',
    950: '#000000',
  },
}
SCSS
$custom: #4f156d;
$custom-light: #845a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f156d",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 279.545,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33948,
    "c": 0.14462,
    "h": 310.8
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#4F156D
secondary
#5EA33A
accent
#EB3D78
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F156D

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

Preview Lab → · Contrast checker → · Palette generator →

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