#4F2BB4#4F2BB4

#4F2BB4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.200 H 286.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4F2BB4
RGBrgb(79, 43, 180)
HSLhsl(256, 61%, 44%)
HSVhsv(256, 76%, 71%)
CMYKcmyk(56.1%, 76.1%, 0%, 29.4%)
CIE-LABlab(31.08, 50.15, -66.48)
CIE-LCHlch(31.08, 83.28, 307.03°)
OKLaboklab(42.83% 0.0568 -0.1914)
OKLCHoklch(42.83% 0.2 286.5)
XYZxyz(12.3241, 6.6846, 43.8120)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BB4 #90B42B
analogous
#2B4CB4 #4F2BB4 #932BB4
triadic
#4F2BB4 #B44F2B #2BB44F
tetradic
#4F2BB4 #B42B4C #90B42B #2BB493
square
#4F2BB4 #B42B4C #90B42B #2BB493
split-complementary
#4F2BB4 #B4932B #4CB42B
monochromatic
#241351 #391F83 #4F2BB4 #6D49D3 #957ADF

Accessibility & contrast

On white

8.99
#4F2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4F2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BB4
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BB4#FFFFFF#000000##FFFFFF
##4F2BB41.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2bb4;
/* rgb */ color: rgb(79, 43, 180);
/* oklch */ color: oklch(42.8% 0.200 286.5);
Tailwind
colors: {
  custom: {
    50: '#8c69cc',
    500: '#4f2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2bb4;
$custom-light: #8c69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2bb4",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 255.766,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42828,
    "c": 0.19964,
    "h": 286.5
  },
  "luminance": 0.06685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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