#4F2173#4F2173

#4F2173 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.136 H 306.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4F2173
RGBrgb(79, 33, 115)
HSLhsl(274, 55%, 29%)
HSVhsv(274, 71%, 45%)
CMYKcmyk(31.3%, 71.3%, 0%, 54.9%)
CIE-LABlab(23.63, 37.37, -38.57)
CIE-LCHlch(23.63, 53.70, 314.10°)
OKLaboklab(35.81% 0.0806 -0.1094)
OKLCHoklch(35.81% 0.136 306.4)
XYZxyz(6.8622, 3.9879, 16.6246)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2173 #457321
analogous
#262173 #4F2173 #73216E
triadic
#4F2173 #734F21 #21734F
tetradic
#4F2173 #732621 #457321 #216E73
square
#4F2173 #732621 #457321 #216E73
split-complementary
#4F2173 #6E7321 #217326
monochromatic
#100718 #2E1343 #4F2173 #702FA3 #8F45CA

Accessibility & contrast

On white

11.68
#4F2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2173
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2173#FFFFFF#000000##FFFFFF
##4F21731.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#093971
Tritanopia (blue-blind)
#493347
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f2173;
/* rgb */ color: rgb(79, 33, 115);
/* oklch */ color: oklch(35.8% 0.136 306.4);
Tailwind
colors: {
  custom: {
    50: '#84609c',
    500: '#4f2173',
    950: '#000000',
  },
}
SCSS
$custom: #4f2173;
$custom-light: #84609c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2173",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 273.659,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35809,
    "c": 0.13589,
    "h": 306.4
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#4F2173
secondary
#72A649
accent
#DF498B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2173

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

Preview Lab → · Contrast checker → · Palette generator →

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