#4F2271#4F2271

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

Color values

HEX#4F2271
RGBrgb(79, 34, 113)
HSLhsl(274, 54%, 29%)
HSVhsv(274, 70%, 44%)
CMYKcmyk(30.1%, 69.9%, 0%, 55.7%)
CIE-LABlab(23.67, 36.35, -37.22)
CIE-LCHlch(23.67, 52.03, 314.32°)
OKLaboklab(35.79% 0.0797 -0.1054)
OKLCHoklch(35.79% 0.132 307.1)
XYZxyz(6.7765, 3.9987, 16.0344)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2271 #447122
analogous
#282271 #4F2271 #71226C
triadic
#4F2271 #714F22 #22714F
tetradic
#4F2271 #712822 #447122 #226C71
square
#4F2271 #712822 #447122 #226C71
split-complementary
#4F2271 #6C7122 #227128
monochromatic
#100718 #2E1442 #4F2271 #7030A0 #9046C7

Accessibility & contrast

On white

11.67
#4F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2271
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2271#FFFFFF#000000##FFFFFF
##4F22711.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#0F396F
Tritanopia (blue-blind)
#493346
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f2271;
/* rgb */ color: rgb(79, 34, 113);
/* oklch */ color: oklch(35.8% 0.132 307.1);
Tailwind
colors: {
  custom: {
    50: '#84619a',
    500: '#4f2271',
    950: '#000000',
  },
}
SCSS
$custom: #4f2271;
$custom-light: #84619a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2271",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 274.177,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35787,
    "c": 0.13215,
    "h": 307.1
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#4F2271
secondary
#71A44A
accent
#DD4B8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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