#4F2BAB#4F2BAB

#4F2BAB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.189 H 288.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4F2BAB
RGBrgb(79, 43, 171)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(53.8%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.23, 47.58, -62.50)
CIE-LCHlch(30.23, 78.55, 307.28°)
OKLaboklab(41.97% 0.0592 -0.1797)
OKLCHoklch(41.97% 0.189 288.2)
XYZxyz(11.4369, 6.3297, 39.1393)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BAB #87AB2B
analogous
#2B47AB #4F2BAB #8F2BAB
triadic
#4F2BAB #AB4F2B #2BAB4F
tetradic
#4F2BAB #AB2B47 #87AB2B #2BAB8F
square
#4F2BAB #AB2B47 #87AB2B #2BAB8F
split-complementary
#4F2BAB #AB8F2B #47AB2B
monochromatic
#221249 #381F7A #4F2BAB #6B43D0 #9174DC

Accessibility & contrast

On white

9.27
#4F2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BAB
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BAB#FFFFFF#000000##FFFFFF
##4F2BAB1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#2A4E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2bab;
/* rgb */ color: rgb(79, 43, 171);
/* oklch */ color: oklch(42.0% 0.189 288.2);
Tailwind
colors: {
  custom: {
    50: '#8a68c5',
    500: '#4f2bab',
    950: '#000000',
  },
}
SCSS
$custom: #4f2bab;
$custom-light: #8a68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2bab",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 256.875,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41974,
    "c": 0.1892,
    "h": 288.2
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#4F2BAB
secondary
#ACC46E
accent
#E345B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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