#4F207D#4F207D

#4F207D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.149 H 302.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4F207D
RGBrgb(79, 32, 125)
HSLhsl(270, 59%, 31%)
HSVhsv(270, 74%, 49%)
CMYKcmyk(36.8%, 74.4%, 0%, 51%)
CIE-LABlab(24.24, 40.43, -43.94)
CIE-LCHlch(24.24, 59.72, 312.62°)
OKLaboklab(36.5% 0.0801 -0.1252)
OKLCHoklch(36.5% 0.149 302.6)
XYZxyz(7.4418, 4.1759, 19.8120)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F207D #4E7D20
analogous
#21207D #4F207D #7D207C
triadic
#4F207D #7D4F20 #207D4F
tetradic
#4F207D #7D2120 #4E7D20 #207C7D
square
#4F207D #7D2120 #4E7D20 #207C7D
split-complementary
#4F207D #7C7D20 #207D21
monochromatic
#11071C #30144C #4F207D #6E2CAE #8C47D0

Accessibility & contrast

On white

11.44
#4F207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F207D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F207D#FFFFFF#000000##FFFFFF
##4F207D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#46374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f207d;
/* rgb */ color: rgb(79, 32, 125);
/* oklch */ color: oklch(36.5% 0.149 302.6);
Tailwind
colors: {
  custom: {
    50: '#8560a3',
    500: '#4f207d',
    950: '#000000',
  },
}
SCSS
$custom: #4f207d;
$custom-light: #8560a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f207d",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 270.323,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36496,
    "c": 0.14862,
    "h": 302.6
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#4F207D
secondary
#7CB049
accent
#E24593
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F207D

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

Preview Lab → · Contrast checker → · Palette generator →

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