#4F2AB5#4F2AB5

#4F2AB5 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 42.8% C 0.202 H 286.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#4F2AB5
RGBrgb(79, 42, 181)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 71%)
CMYKcmyk(56.4%, 76.8%, 0%, 29%)
CIE-LABlab(31.01, 50.92, -67.20)
CIE-LCHlch(31.01, 84.31, 307.15°)
OKLaboklab(42.81% 0.0573 -0.1935)
OKLCHoklch(42.81% 0.202 286.5)
XYZxyz(12.3904, 6.6537, 44.3385)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AB5 #90B52A
analogous
#2A4AB5 #4F2AB5 #942AB5
triadic
#4F2AB5 #B54F2A #2AB54F
tetradic
#4F2AB5 #B52A4A #90B52A #2AB594
square
#4F2AB5 #B52A4A #90B52A #2AB594
split-complementary
#4F2AB5 #B5942A #4AB52A
monochromatic
#241352 #391E83 #4F2AB5 #6D48D4 #9579E0

Accessibility & contrast

On white

9.01
#4F2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4F2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AB5
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AB5#FFFFFF#000000##FFFFFF
##4F2AB51.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#1F526E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2ab5;
/* rgb */ color: rgb(79, 42, 181);
/* oklch */ color: oklch(42.8% 0.202 286.5);
Tailwind
colors: {
  custom: {
    50: '#8c68cc',
    500: '#4f2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ab5;
$custom-light: #8c68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ab5",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 255.971,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.20176,
    "h": 286.5
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#4F2AB5
secondary
#B1C873
accent
#E542BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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