#4F2AA7#4F2AA7

#4F2AA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.186 H 289.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA7
RGBrgb(79, 42, 167)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(52.7%, 74.9%, 0%, 34.5%)
CIE-LABlab(29.68, 46.94, -60.99)
CIE-LCHlch(29.68, 76.96, 307.58°)
OKLaboklab(41.48% 0.061 -0.1753)
OKLCHoklch(41.48% 0.186 289.2)
XYZxyz(11.0254, 6.1077, 37.1497)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA7 #82A72A
analogous
#2A43A7 #4F2AA7 #8D2AA7
triadic
#4F2AA7 #A74F2A #2AA74F
tetradic
#4F2AA7 #A72A43 #82A72A #2AA78D
square
#4F2AA7 #A72A43 #82A72A #2AA78D
split-complementary
#4F2AA7 #A78D2A #43A72A
monochromatic
#211145 #381E76 #4F2AA7 #6A3FCF #9070DB

Accessibility & contrast

On white

9.45
#4F2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA7
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA7#FFFFFF#000000##FFFFFF
##4F2AA71.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#2E4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2aa7;
/* rgb */ color: rgb(79, 42, 167);
/* oklch */ color: oklch(41.5% 0.186 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a68c2',
    500: '#4f2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa7;
$custom-light: #8a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa7",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 257.76,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41476,
    "c": 0.18559,
    "h": 289.2
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#4F2AA7
secondary
#A8C26B
accent
#E345B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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