#4F2AB3#4F2AB3

#4F2AB3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.199 H 286.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#4F2AB3
RGBrgb(79, 42, 179)
HSLhsl(256, 62%, 43%)
HSVhsv(256, 77%, 70%)
CMYKcmyk(55.9%, 76.5%, 0%, 29.8%)
CIE-LABlab(30.81, 50.35, -66.32)
CIE-LCHlch(30.81, 83.27, 307.20°)
OKLaboklab(42.61% 0.0578 -0.1909)
OKLCHoklch(42.61% 0.199 286.9)
XYZxyz(12.1867, 6.5722, 43.2655)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AB3 #8EB32A
analogous
#2A4AB3 #4F2AB3 #932AB3
triadic
#4F2AB3 #B34F2A #2AB34F
tetradic
#4F2AB3 #B32A4A #8EB32A #2AB393
square
#4F2AB3 #B32A4A #8EB32A #2AB393
split-complementary
#4F2AB3 #B3932A #4AB32A
monochromatic
#231350 #391E81 #4F2AB3 #6D46D4 #9478DF

Accessibility & contrast

On white

9.07
#4F2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AB3
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AB3#FFFFFF#000000##FFFFFF
##4F2AB31.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#22516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2ab3;
/* rgb */ color: rgb(79, 42, 179);
/* oklch */ color: oklch(42.6% 0.199 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c68cb',
    500: '#4f2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ab3;
$custom-light: #8c68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ab3",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 256.204,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.19946,
    "h": 286.9
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#4F2AB3
secondary
#B0C772
accent
#E543B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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