#4F2CB1#4F2CB1

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

Color values

HEX#4F2CB1
RGBrgb(79, 44, 177)
HSLhsl(256, 60%, 43%)
HSVhsv(256, 75%, 69%)
CMYKcmyk(55.4%, 75.1%, 0%, 30.6%)
CIE-LABlab(30.97, 48.80, -64.88)
CIE-LCHlch(30.97, 81.18, 306.95°)
OKLaboklab(42.66% 0.0569 -0.1867)
OKLCHoklch(42.66% 0.195 286.9)
XYZxyz(12.0586, 6.6373, 42.2322)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CB1 #8EB12C
analogous
#2C4CB1 #4F2CB1 #912CB1
triadic
#4F2CB1 #B14F2C #2CB14F
tetradic
#4F2CB1 #B12C4C #8EB12C #2CB191
square
#4F2CB1 #B12C4C #8EB12C #2CB191
split-complementary
#4F2CB1 #B1912C #4CB12C
monochromatic
#23144F #392080 #4F2CB1 #6D49D2 #947ADE

Accessibility & contrast

On white

9.02
#4F2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2CB1
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CB1#FFFFFF#000000##FFFFFF
##4F2CB11.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#24516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2cb1;
/* rgb */ color: rgb(79, 44, 177);
/* oklch */ color: oklch(42.7% 0.195 286.9);
Tailwind
colors: {
  custom: {
    50: '#8b69c9',
    500: '#4f2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2cb1;
$custom-light: #8b69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2cb1",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 255.789,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.19516,
    "h": 286.9
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#4F2CB1
secondary
#B0C673
accent
#E344BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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