#4F2ABA#4F2ABA

#4F2ABA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.3% C 0.207 H 285.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4F2ABA
RGBrgb(79, 42, 186)
HSLhsl(255, 63%, 45%)
HSVhsv(255, 77%, 73%)
CMYKcmyk(57.5%, 77.4%, 0%, 27.1%)
CIE-LABlab(31.49, 52.33, -69.36)
CIE-LCHlch(31.49, 86.89, 307.03°)
OKLaboklab(43.29% 0.0559 -0.1998)
OKLCHoklch(43.29% 0.207 285.6)
XYZxyz(12.9127, 6.8626, 47.0890)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2ABA #95BA2A
analogous
#2A4DBA #4F2ABA #972ABA
triadic
#4F2ABA #BA4F2A #2ABA4F
tetradic
#4F2ABA #BA2A4D #95BA2A #2ABA97
square
#4F2ABA #BA2A4D #95BA2A #2ABA97
split-complementary
#4F2ABA #BA972A #4DBA2A
monochromatic
#251356 #3A1F88 #4F2ABA #6F4BD6 #977DE2

Accessibility & contrast

On white

8.85
#4F2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4F2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2ABA
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2ABA#FFFFFF#000000##FFFFFF
##4F2ABA1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#175471
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f2aba;
/* rgb */ color: rgb(79, 42, 186);
/* oklch */ color: oklch(43.3% 0.207 285.6);
Tailwind
colors: {
  custom: {
    50: '#8d68d0',
    500: '#4f2aba',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aba;
$custom-light: #8d68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aba",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 255.417,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43293,
    "c": 0.20744,
    "h": 285.6
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#4F2ABA
secondary
#B4CA76
accent
#E642BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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