#4F2BAA#4F2BAA

#4F2BAA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.188 H 288.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4F2BAA
RGBrgb(79, 43, 170)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(53.5%, 74.7%, 0%, 33.3%)
CIE-LABlab(30.14, 47.30, -62.05)
CIE-LCHlch(30.14, 78.02, 307.31°)
OKLaboklab(41.88% 0.0594 -0.1784)
OKLCHoklch(41.88% 0.188 288.4)
XYZxyz(11.3419, 6.2917, 38.6392)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BAA #86AA2B
analogous
#2B47AA #4F2BAA #8F2BAA
triadic
#4F2BAA #AA4F2B #2BAA4F
tetradic
#4F2BAA #AA2B47 #86AA2B #2BAA8F
square
#4F2BAA #AA2B47 #86AA2B #2BAA8F
split-complementary
#4F2BAA #AA8F2B #47AA2B
monochromatic
#221248 #381F79 #4F2BAA #6B43CF #9174DC

Accessibility & contrast

On white

9.30
#4F2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BAA
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BAA#FFFFFF#000000##FFFFFF
##4F2BAA1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#2B4E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2baa;
/* rgb */ color: rgb(79, 43, 170);
/* oklch */ color: oklch(41.9% 0.188 288.4);
Tailwind
colors: {
  custom: {
    50: '#8a68c4',
    500: '#4f2baa',
    950: '#000000',
  },
}
SCSS
$custom: #4f2baa;
$custom-light: #8a68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2baa",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 257.008,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4188,
    "c": 0.18803,
    "h": 288.4
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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