#4F2170#4F2170

#4F2170 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.132 H 307.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#4F2170
RGBrgb(79, 33, 112)
HSLhsl(275, 54%, 28%)
HSVhsv(275, 71%, 44%)
CMYKcmyk(29.5%, 70.5%, 0%, 56.1%)
CIE-LABlab(23.40, 36.62, -37.00)
CIE-LCHlch(23.40, 52.06, 314.70°)
OKLaboklab(35.58% 0.081 -0.1048)
OKLCHoklch(35.58% 0.132 307.7)
XYZxyz(6.6923, 3.9199, 15.7302)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2170 #427021
analogous
#272170 #4F2170 #702169
triadic
#4F2170 #704F21 #21704F
tetradic
#4F2170 #702721 #427021 #216970
square
#4F2170 #702721 #427021 #216970
split-complementary
#4F2170 #697021 #217027
monochromatic
#110718 #2E1341 #4F2170 #702F9F #9144C8

Accessibility & contrast

On white

11.77
#4F2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2170
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2170#FFFFFF#000000##FFFFFF
##4F21701.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#0F386E
Tritanopia (blue-blind)
#4A3245
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f2170;
/* rgb */ color: rgb(79, 33, 112);
/* oklch */ color: oklch(35.6% 0.132 307.7);
Tailwind
colors: {
  custom: {
    50: '#84609a',
    500: '#4f2170',
    950: '#000000',
  },
}
SCSS
$custom: #4f2170;
$custom-light: #84609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2170",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 274.937,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35575,
    "c": 0.13244,
    "h": 307.7
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#4F2170
secondary
#6FA449
accent
#DE4A88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2170

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

Preview Lab → · Contrast checker → · Palette generator →

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