#4F2AA6#4F2AA6

#4F2AA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.184 H 289.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA6
RGBrgb(79, 42, 166)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(52.4%, 74.7%, 0%, 34.9%)
CIE-LABlab(29.59, 46.66, -60.54)
CIE-LCHlch(29.59, 76.43, 307.62°)
OKLaboklab(41.38% 0.0612 -0.174)
OKLCHoklch(41.38% 0.184 289.4)
XYZxyz(10.9334, 6.0709, 36.6647)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA6 #81A62A
analogous
#2A43A6 #4F2AA6 #8D2AA6
triadic
#4F2AA6 #A64F2A #2AA64F
tetradic
#4F2AA6 #A62A43 #81A62A #2AA68D
square
#4F2AA6 #A62A43 #81A62A #2AA68D
split-complementary
#4F2AA6 #A68D2A #43A62A
monochromatic
#211144 #381E75 #4F2AA6 #6A3FCE #9070DB

Accessibility & contrast

On white

9.48
#4F2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA6
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA6#FFFFFF#000000##FFFFFF
##4F2AA61.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#2F4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2aa6;
/* rgb */ color: rgb(79, 42, 166);
/* oklch */ color: oklch(41.4% 0.184 289.4);
Tailwind
colors: {
  custom: {
    50: '#8967c1',
    500: '#4f2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa6;
$custom-light: #8967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa6",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 257.903,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41383,
    "c": 0.18442,
    "h": 289.4
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#4F2AA6
secondary
#A8C26A
accent
#E345B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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