#4F207C#4F207C

#4F207C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.147 H 303.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4F207C
RGBrgb(79, 32, 124)
HSLhsl(271, 59%, 31%)
HSVhsv(271, 74%, 49%)
CMYKcmyk(36.3%, 74.2%, 0%, 51.4%)
CIE-LABlab(24.16, 40.18, -43.44)
CIE-LCHlch(24.16, 59.17, 312.76°)
OKLaboklab(36.41% 0.0803 -0.1237)
OKLCHoklch(36.41% 0.147 303)
XYZxyz(7.3782, 4.1505, 19.4773)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F207C #4D7C20
analogous
#21207C #4F207C #7C207B
triadic
#4F207C #7C4F20 #207C4F
tetradic
#4F207C #7C2120 #4D7C20 #207B7C
square
#4F207C #7C2120 #4D7C20 #207B7C
split-complementary
#4F207C #7B7C20 #207C21
monochromatic
#11071B #30134B #4F207C #6E2DAD #8D47CF

Accessibility & contrast

On white

11.47
#4F207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4F207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F207C
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F207C#FFFFFF#000000##FFFFFF
##4F207C1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#46364C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f207c;
/* rgb */ color: rgb(79, 32, 124);
/* oklch */ color: oklch(36.4% 0.147 303.0);
Tailwind
colors: {
  custom: {
    50: '#8560a3',
    500: '#4f207c',
    950: '#000000',
  },
}
SCSS
$custom: #4f207c;
$custom-light: #8560a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f207c",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 270.652,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.14749,
    "h": 303
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#4F207C
secondary
#7BAF49
accent
#E24692
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F207C

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

Preview Lab → · Contrast checker → · Palette generator →

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