#4F207B#4F207B

#4F207B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.146 H 303.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4F207B
RGBrgb(79, 32, 123)
HSLhsl(271, 59%, 30%)
HSVhsv(271, 74%, 48%)
CMYKcmyk(35.8%, 74%, 0%, 51.8%)
CIE-LABlab(24.08, 39.92, -42.94)
CIE-LCHlch(24.08, 58.63, 312.91°)
OKLaboklab(36.33% 0.0805 -0.1222)
OKLCHoklch(36.33% 0.146 303.4)
XYZxyz(7.3153, 4.1254, 19.1459)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F207B #4C7B20
analogous
#21207B #4F207B #7B2079
triadic
#4F207B #7B4F20 #207B4F
tetradic
#4F207B #7B2120 #4C7B20 #20797B
square
#4F207B #7B2120 #4C7B20 #20797B
split-complementary
#4F207B #797B20 #207B21
monochromatic
#11071A #30134A #4F207B #6E2DAC #8D46CF

Accessibility & contrast

On white

11.51
#4F207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F207B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F207B#FFFFFF#000000##FFFFFF
##4F207B1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#46364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f207b;
/* rgb */ color: rgb(79, 32, 123);
/* oklch */ color: oklch(36.3% 0.146 303.4);
Tailwind
colors: {
  custom: {
    50: '#8560a2',
    500: '#4f207b',
    950: '#000000',
  },
}
SCSS
$custom: #4f207b;
$custom-light: #8560a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f207b",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 270.989,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36329,
    "c": 0.14636,
    "h": 303.4
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#4F207B
secondary
#7AAE49
accent
#E24691
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F207B

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

Preview Lab → · Contrast checker → · Palette generator →

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