#4F1772#4F1772

#4F1772 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.147 H 308.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4F1772
RGBrgb(79, 23, 114)
HSLhsl(277, 66%, 27%)
HSVhsv(277, 80%, 45%)
CMYKcmyk(30.7%, 79.8%, 0%, 55.3%)
CIE-LABlab(21.91, 41.78, -40.71)
CIE-LCHlch(21.91, 58.33, 315.74°)
OKLaboklab(34.56% 0.0916 -0.1156)
OKLCHoklch(34.56% 0.147 308.4)
XYZxyz(6.5675, 3.4901, 16.2440)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1772 #3A7217
analogous
#221772 #4F1772 #721768
triadic
#4F1772 #724F17 #17724F
tetradic
#4F1772 #722217 #3A7217 #176872
square
#4F1772 #722217 #3A7217 #176872
split-complementary
#4F1772 #687217 #177222
monochromatic
#120519 #2C0D3F #4F1772 #7221A5 #952ED5

Accessibility & contrast

On white

12.37
#4F1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1772
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1772#FFFFFF#000000##FFFFFF
##4F17721.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#492D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1772;
/* rgb */ color: rgb(79, 23, 114);
/* oklch */ color: oklch(34.6% 0.147 308.4);
Tailwind
colors: {
  custom: {
    50: '#845b9b',
    500: '#4f1772',
    950: '#000000',
  },
}
SCSS
$custom: #4f1772;
$custom-light: #845b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1772",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 276.923,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34562,
    "c": 0.14748,
    "h": 308.4
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#4F1772
secondary
#66A83D
accent
#E93E80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1772

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

Preview Lab → · Contrast checker → · Palette generator →

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