#4F1780#4F1780

#4F1780 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.162 H 302.8°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4F1780
RGBrgb(79, 23, 128)
HSLhsl(272, 70%, 30%)
HSVhsv(272, 82%, 50%)
CMYKcmyk(38.3%, 82%, 0%, 49.8%)
CIE-LABlab(23.11, 45.16, -47.69)
CIE-LCHlch(23.11, 65.68, 313.44°)
OKLaboklab(35.78% 0.0879 -0.1361)
OKLCHoklch(35.78% 0.162 302.8)
XYZxyz(7.4262, 3.8336, 20.7666)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1780 #488017
analogous
#1B1780 #4F1780 #80177D
triadic
#4F1780 #804F17 #17804F
tetradic
#4F1780 #801B17 #488017 #177D80
square
#4F1780 #801B17 #488017 #177D80
split-complementary
#4F1780 #7D8017 #17801B
monochromatic
#10051A #2F0E4C #4F1780 #6F20B4 #8E36DB

Accessibility & contrast

On white

11.89
#4F1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1780
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1780#FFFFFF#000000##FFFFFF
##4F17801.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#45334C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1780;
/* rgb */ color: rgb(79, 23, 128);
/* oklch */ color: oklch(35.8% 0.162 302.8);
Tailwind
colors: {
  custom: {
    50: '#865ca6',
    500: '#4f1780',
    950: '#000000',
  },
}
SCSS
$custom: #4f1780;
$custom-light: #865ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1780",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 272,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3578,
    "c": 0.162,
    "h": 302.8
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#4F1780
secondary
#75B43E
accent
#EC3B8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1780

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

Preview Lab → · Contrast checker → · Palette generator →

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