#4F1973#4F1973

#4F1973 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.146 H 307.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4F1973
RGBrgb(79, 25, 115)
HSLhsl(276, 64%, 27%)
HSVhsv(276, 78%, 45%)
CMYKcmyk(31.3%, 78.3%, 0%, 54.9%)
CIE-LABlab(22.29, 41.17, -40.74)
CIE-LCHlch(22.29, 57.92, 315.30°)
OKLaboklab(34.85% 0.0894 -0.1157)
OKLCHoklch(34.85% 0.146 307.7)
XYZxyz(6.6659, 3.5954, 16.5592)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1973 #3D7319
analogous
#221973 #4F1973 #73196A
triadic
#4F1973 #734F19 #19734F
tetradic
#4F1973 #732219 #3D7319 #196A73
square
#4F1973 #732219 #3D7319 #196A73
split-complementary
#4F1973 #6A7319 #197322
monochromatic
#110519 #2C0E41 #4F1973 #7224A5 #9334D3

Accessibility & contrast

On white

12.22
#4F1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1973
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1973#FFFFFF#000000##FFFFFF
##4F19731.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#492F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1973;
/* rgb */ color: rgb(79, 25, 115);
/* oklch */ color: oklch(34.9% 0.146 307.7);
Tailwind
colors: {
  custom: {
    50: '#845c9c',
    500: '#4f1973',
    950: '#000000',
  },
}
SCSS
$custom: #4f1973;
$custom-light: #845c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1973",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 276,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34854,
    "c": 0.14623,
    "h": 307.7
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#4F1973
secondary
#69A840
accent
#E74183
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1973

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

Preview Lab → · Contrast checker → · Palette generator →

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