#4F2AB1#4F2AB1

#4F2AB1 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.197 H 287.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4F2AB1
RGBrgb(79, 42, 177)
HSLhsl(256, 62%, 43%)
HSVhsv(256, 76%, 69%)
CMYKcmyk(55.4%, 76.3%, 0%, 30.6%)
CIE-LABlab(30.62, 49.78, -65.45)
CIE-LCHlch(30.62, 82.23, 307.26°)
OKLaboklab(42.42% 0.0584 -0.1883)
OKLCHoklch(42.42% 0.197 287.2)
XYZxyz(11.9859, 6.4919, 42.2079)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AB1 #8CB12A
analogous
#2A49B1 #4F2AB1 #922AB1
triadic
#4F2AB1 #B14F2A #2AB14F
tetradic
#4F2AB1 #B12A49 #8CB12A #2AB192
square
#4F2AB1 #B12A49 #8CB12A #2AB192
split-complementary
#4F2AB1 #B1922A #49B12A
monochromatic
#23134E #391E80 #4F2AB1 #6C45D3 #9377DF

Accessibility & contrast

On white

9.14
#4F2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4F2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AB1
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AB1#FFFFFF#000000##FFFFFF
##4F2AB11.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#24506C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2ab1;
/* rgb */ color: rgb(79, 42, 177);
/* oklch */ color: oklch(42.4% 0.197 287.2);
Tailwind
colors: {
  custom: {
    50: '#8b68c9',
    500: '#4f2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ab1;
$custom-light: #8b68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ab1",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 256.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.19717,
    "h": 287.2
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

primary
#4F2AB1
secondary
#AFC670
accent
#E543B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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