#4F2AB4#4F2AB4

#4F2AB4 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.201 H 286.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4F2AB4
RGBrgb(79, 42, 180)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 71%)
CMYKcmyk(56.1%, 76.7%, 0%, 29.4%)
CIE-LABlab(30.91, 50.63, -66.76)
CIE-LCHlch(30.91, 83.79, 307.18°)
OKLaboklab(42.71% 0.0575 -0.1922)
OKLCHoklch(42.71% 0.201 286.7)
XYZxyz(12.2882, 6.6128, 43.8001)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AB4 #8FB42A
analogous
#2A4AB4 #4F2AB4 #942AB4
triadic
#4F2AB4 #B44F2A #2AB44F
tetradic
#4F2AB4 #B42A4A #8FB42A #2AB494
square
#4F2AB4 #B42A4A #8FB42A #2AB494
split-complementary
#4F2AB4 #B4942A #4AB42A
monochromatic
#231351 #391E82 #4F2AB4 #6D47D4 #9479E0

Accessibility & contrast

On white

9.04
#4F2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4F2AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AB4
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AB4#FFFFFF#000000##FFFFFF
##4F2AB41.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#20516E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2ab4;
/* rgb */ color: rgb(79, 42, 180);
/* oklch */ color: oklch(42.7% 0.201 286.7);
Tailwind
colors: {
  custom: {
    50: '#8c68cc',
    500: '#4f2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ab4;
$custom-light: #8c68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ab4",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 256.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42709,
    "c": 0.20061,
    "h": 286.7
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#4F2AB4
secondary
#B1C872
accent
#E543BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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