#4F2174#4F2174

#4F2174 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.137 H 306.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4F2174
RGBrgb(79, 33, 116)
HSLhsl(273, 56%, 29%)
HSVhsv(273, 72%, 45%)
CMYKcmyk(31.9%, 71.6%, 0%, 54.5%)
CIE-LABlab(23.71, 37.63, -39.08)
CIE-LCHlch(23.71, 54.25, 313.91°)
OKLaboklab(35.89% 0.0805 -0.1109)
OKLCHoklch(35.89% 0.137 306)
XYZxyz(6.9200, 4.0110, 16.9293)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2174 #467421
analogous
#262174 #4F2174 #742170
triadic
#4F2174 #744F21 #21744F
tetradic
#4F2174 #742621 #467421 #217074
square
#4F2174 #742621 #467421 #217074
split-complementary
#4F2174 #707421 #217426
monochromatic
#100718 #2F1344 #4F2174 #6F2FA4 #8F45CA

Accessibility & contrast

On white

11.65
#4F2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2174
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2174#FFFFFF#000000##FFFFFF
##4F21741.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#073972
Tritanopia (blue-blind)
#493448
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f2174;
/* rgb */ color: rgb(79, 33, 116);
/* oklch */ color: oklch(35.9% 0.137 306.0);
Tailwind
colors: {
  custom: {
    50: '#84609d',
    500: '#4f2174',
    950: '#000000',
  },
}
SCSS
$custom: #4f2174;
$custom-light: #84609d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2174",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 273.253,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35888,
    "c": 0.13704,
    "h": 306
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#4F2174
secondary
#73A749
accent
#DF498C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2174

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

Preview Lab → · Contrast checker → · Palette generator →

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