#4F1972#4F1972

#4F1972 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.145 H 308.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4F1972
RGBrgb(79, 25, 114)
HSLhsl(276, 64%, 27%)
HSVhsv(276, 78%, 45%)
CMYKcmyk(30.7%, 78.1%, 0%, 55.3%)
CIE-LABlab(22.20, 40.93, -40.23)
CIE-LCHlch(22.20, 57.39, 315.49°)
OKLaboklab(34.77% 0.0896 -0.1142)
OKLCHoklch(34.77% 0.145 308.1)
XYZxyz(6.6087, 3.5725, 16.2577)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1972 #3C7219
analogous
#221972 #4F1972 #721969
triadic
#4F1972 #724F19 #19724F
tetradic
#4F1972 #722219 #3C7219 #196972
square
#4F1972 #722219 #3C7219 #196972
split-complementary
#4F1972 #697219 #197222
monochromatic
#110619 #2C0E40 #4F1972 #7224A4 #9433D2

Accessibility & contrast

On white

12.25
#4F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1972
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1972#FFFFFF#000000##FFFFFF
##4F19721.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#492E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1972;
/* rgb */ color: rgb(79, 25, 114);
/* oklch */ color: oklch(34.8% 0.145 308.1);
Tailwind
colors: {
  custom: {
    50: '#845c9b',
    500: '#4f1972',
    950: '#000000',
  },
}
SCSS
$custom: #4f1972;
$custom-light: #845c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1972",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 276.404,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.14517,
    "h": 308.1
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#4F1972
secondary
#68A740
accent
#E74182
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1972

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

Preview Lab → · Contrast checker → · Palette generator →

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