#4F207F#4F207F

#4F207F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.151 H 301.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4F207F
RGBrgb(79, 32, 127)
HSLhsl(270, 60%, 31%)
HSVhsv(270, 75%, 50%)
CMYKcmyk(37.8%, 74.8%, 0%, 50.2%)
CIE-LABlab(24.41, 40.95, -44.94)
CIE-LCHlch(24.41, 60.80, 312.34°)
OKLaboklab(36.66% 0.0797 -0.1281)
OKLCHoklch(36.66% 0.151 301.9)
XYZxyz(7.5708, 4.2276, 20.4917)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F207F #507F20
analogous
#20217F #4F207F #7E207F
triadic
#4F207F #7F4F20 #207F4F
tetradic
#4F207F #7F2021 #507F20 #207F7E
square
#4F207F #7F2021 #507F20 #207F7E
split-complementary
#4F207F #7F7E20 #217F20
monochromatic
#12071D #31144E #4F207F #6D2CB0 #8C48D1

Accessibility & contrast

On white

11.38
#4F207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4F207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F207F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F207F#FFFFFF#000000##FFFFFF
##4F207F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#45374D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f207f;
/* rgb */ color: rgb(79, 32, 127);
/* oklch */ color: oklch(36.7% 0.151 301.9);
Tailwind
colors: {
  custom: {
    50: '#8560a5',
    500: '#4f207f',
    950: '#000000',
  },
}
SCSS
$custom: #4f207f;
$custom-light: #8560a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f207f",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 269.684,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.15088,
    "h": 301.9
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#4F207F
secondary
#7EB249
accent
#E34595
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F207F

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

Preview Lab → · Contrast checker → · Palette generator →

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