#4F2180#4F2180

#4F2180 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.151 H 301.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4F2180
RGBrgb(79, 33, 128)
HSLhsl(269, 59%, 32%)
HSVhsv(269, 74%, 50%)
CMYKcmyk(38.3%, 74.2%, 0%, 49.8%)
CIE-LABlab(24.67, 40.72, -45.16)
CIE-LCHlch(24.67, 60.81, 312.05°)
OKLaboklab(36.87% 0.0785 -0.1287)
OKLCHoklch(36.87% 0.151 301.4)
XYZxyz(7.6636, 4.3084, 20.8458)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2180 #528021
analogous
#212280 #4F2180 #7F2180
triadic
#4F2180 #804F21 #21804F
tetradic
#4F2180 #802122 #528021 #21807F
square
#4F2180 #802122 #528021 #21807F
split-complementary
#4F2180 #807F21 #228021
monochromatic
#13081F #31144F #4F2180 #6D2EB1 #8C4BD1

Accessibility & contrast

On white

11.28
#4F2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2180
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2180#FFFFFF#000000##FFFFFF
##4F21801.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#44384E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2180;
/* rgb */ color: rgb(79, 33, 128);
/* oklch */ color: oklch(36.9% 0.151 301.4);
Tailwind
colors: {
  custom: {
    50: '#8561a6',
    500: '#4f2180',
    950: '#000000',
  },
}
SCSS
$custom: #4f2180;
$custom-light: #8561a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2180",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 269.053,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36872,
    "c": 0.15078,
    "h": 301.4
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#4F2180
secondary
#80B34A
accent
#E24696
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F2180

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

Preview Lab → · Contrast checker → · Palette generator →

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