#4F2178#4F2178

#4F2178 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.142 H 304.3°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4F2178
RGBrgb(79, 33, 120)
HSLhsl(272, 57%, 30%)
HSVhsv(272, 73%, 47%)
CMYKcmyk(34.2%, 72.5%, 0%, 52.9%)
CIE-LABlab(24.02, 38.65, -41.13)
CIE-LCHlch(24.02, 56.44, 313.22°)
OKLaboklab(36.21% 0.0799 -0.1169)
OKLCHoklch(36.21% 0.142 304.3)
XYZxyz(7.1577, 4.1061, 18.1811)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2178 #4A7821
analogous
#232178 #4F2178 #782176
triadic
#4F2178 #784F21 #21784F
tetradic
#4F2178 #782321 #4A7821 #217678
square
#4F2178 #782321 #4A7821 #217678
split-complementary
#4F2178 #767821 #217823
monochromatic
#100718 #2F1448 #4F2178 #6F2EA8 #8E47CC

Accessibility & contrast

On white

11.53
#4F2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2178
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2178#FFFFFF#000000##FFFFFF
##4F21781.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#47354A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f2178;
/* rgb */ color: rgb(79, 33, 120);
/* oklch */ color: oklch(36.2% 0.142 304.3);
Tailwind
colors: {
  custom: {
    50: '#8460a0',
    500: '#4f2178',
    950: '#000000',
  },
}
SCSS
$custom: #4f2178;
$custom-light: #8460a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2178",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 271.724,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.36209,
    "c": 0.14163,
    "h": 304.3
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#4F2178
secondary
#78AB4A
accent
#E04890
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4F2178

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

Preview Lab → · Contrast checker → · Palette generator →

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