#4F156E#4F156E

#4F156E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.146 H 310.4°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#4F156E
RGBrgb(79, 21, 110)
HSLhsl(279, 68%, 26%)
HSVhsv(279, 81%, 43%)
CMYKcmyk(28.2%, 80.9%, 0%, 56.9%)
CIE-LABlab(21.30, 41.65, -39.12)
CIE-LCHlch(21.30, 57.14, 316.79°)
OKLaboklab(34.03% 0.0944 -0.1109)
OKLCHoklch(34.03% 0.146 310.4)
XYZxyz(6.3065, 3.3245, 15.0583)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F156E #346E15
analogous
#22156E #4F156E #6E1560
triadic
#4F156E #6E4F15 #156E4F
tetradic
#4F156E #6E2215 #346E15 #15606E
square
#4F156E #6E2215 #346E15 #15606E
split-complementary
#4F156E #606E15 #156E22
monochromatic
#12051A #2A0B3B #4F156E #741FA1 #9929D5

Accessibility & contrast

On white

12.61
#4F156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F156E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F156E#FFFFFF#000000##FFFFFF
##4F156E1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#4B2B41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f156e;
/* rgb */ color: rgb(79, 21, 110);
/* oklch */ color: oklch(34.0% 0.146 310.4);
Tailwind
colors: {
  custom: {
    50: '#845a98',
    500: '#4f156e',
    950: '#000000',
  },
}
SCSS
$custom: #4f156e;
$custom-light: #845a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4f156e",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 279.101,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34031,
    "c": 0.14563,
    "h": 310.4
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#4F156E
secondary
#5FA43A
accent
#EB3D7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F156E

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

Preview Lab → · Contrast checker → · Palette generator →

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