#4F2277#4F2277

#4F2277 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.139 H 304.6°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4F2277
RGBrgb(79, 34, 119)
HSLhsl(272, 56%, 30%)
HSVhsv(272, 71%, 47%)
CMYKcmyk(33.6%, 71.4%, 0%, 53.3%)
CIE-LABlab(24.12, 37.88, -40.33)
CIE-LCHlch(24.12, 55.33, 313.21°)
OKLaboklab(36.26% 0.0789 -0.1146)
OKLCHoklch(36.26% 0.139 304.6)
XYZxyz(7.1255, 4.1383, 17.8726)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2277 #4A7722
analogous
#252277 #4F2277 #772274
triadic
#4F2277 #774F22 #22774F
tetradic
#4F2277 #772522 #4A7722 #227477
square
#4F2277 #772522 #4A7722 #227477
split-complementary
#4F2277 #747722 #227725
monochromatic
#100718 #2F1447 #4F2277 #6F30A7 #8E49CB

Accessibility & contrast

On white

11.49
#4F2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4F2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2277
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2277#FFFFFF#000000##FFFFFF
##4F22771.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#013975
Tritanopia (blue-blind)
#483549
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f2277;
/* rgb */ color: rgb(79, 34, 119);
/* oklch */ color: oklch(36.3% 0.139 304.6);
Tailwind
colors: {
  custom: {
    50: '#84619f',
    500: '#4f2277',
    950: '#000000',
  },
}
SCSS
$custom: #4f2277;
$custom-light: #84619f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2277",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 271.765,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.36258,
    "c": 0.13911,
    "h": 304.6
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#4F2277
secondary
#78AA4B
accent
#DF498F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2277

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

Preview Lab → · Contrast checker → · Palette generator →

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