#4F2AA5#4F2AA5

#4F2AA5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.183 H 289.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA5
RGBrgb(79, 42, 165)
HSLhsl(258, 59%, 41%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(52.1%, 74.5%, 0%, 35.3%)
CIE-LABlab(29.50, 46.37, -60.08)
CIE-LCHlch(29.50, 75.90, 307.66°)
OKLaboklab(41.29% 0.0615 -0.1726)
OKLCHoklch(41.29% 0.183 289.6)
XYZxyz(10.8420, 6.0343, 36.1835)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA5 #80A52A
analogous
#2A42A5 #4F2AA5 #8C2AA5
triadic
#4F2AA5 #A54F2A #2AA54F
tetradic
#4F2AA5 #A52A42 #80A52A #2AA58C
square
#4F2AA5 #A52A42 #80A52A #2AA58C
split-complementary
#4F2AA5 #A58C2A #42A52A
monochromatic
#201143 #381E74 #4F2AA5 #693ECE #8F6FDA

Accessibility & contrast

On white

9.52
#4F2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2AA5
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA5#FFFFFF#000000##FFFFFF
##4F2AA51.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#304B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2aa5;
/* rgb */ color: rgb(79, 42, 165);
/* oklch */ color: oklch(41.3% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#8967c1',
    500: '#4f2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa5;
$custom-light: #8967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa5",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 258.049,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4129,
    "c": 0.18325,
    "h": 289.6
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#4F2AA5
secondary
#A7C169
accent
#E345B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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