#4F207E#4F207E

#4F207E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.150 H 302.2°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4F207E
RGBrgb(79, 32, 126)
HSLhsl(270, 59%, 31%)
HSVhsv(270, 75%, 49%)
CMYKcmyk(37.3%, 74.6%, 0%, 50.6%)
CIE-LABlab(24.33, 40.69, -44.44)
CIE-LCHlch(24.33, 60.26, 312.48°)
OKLaboklab(36.58% 0.0799 -0.1267)
OKLCHoklch(36.58% 0.15 302.2)
XYZxyz(7.5060, 4.2016, 20.1502)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F207E #4F7E20
analogous
#20207E #4F207E #7E207E
triadic
#4F207E #7E4F20 #207E4F
tetradic
#4F207E #7E2020 #4F7E20 #207E7E
square
#4F207E #7E2020 #4F7E20 #207E7E
split-complementary
#4F207E #7E7E20 #207E20
monochromatic
#12071C #30144D #4F207E #6E2CAF #8C48D0

Accessibility & contrast

On white

11.41
#4F207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F207E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F207E#FFFFFF#000000##FFFFFF
##4F207E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#45374D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f207e;
/* rgb */ color: rgb(79, 32, 126);
/* oklch */ color: oklch(36.6% 0.150 302.2);
Tailwind
colors: {
  custom: {
    50: '#8560a4',
    500: '#4f207e',
    950: '#000000',
  },
}
SCSS
$custom: #4f207e;
$custom-light: #8560a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f207e",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3658,
    "c": 0.14975,
    "h": 302.2
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#4F207E
secondary
#7DB149
accent
#E34594
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F207E

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

Preview Lab → · Contrast checker → · Palette generator →

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