#4F2BA1#4F2BA1

#4F2BA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.177 H 290.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4F2BA1
RGBrgb(79, 43, 161)
HSLhsl(258, 58%, 40%)
HSVhsv(258, 73%, 63%)
CMYKcmyk(50.9%, 73.3%, 0%, 36.9%)
CIE-LABlab(29.32, 44.72, -57.96)
CIE-LCHlch(29.32, 73.21, 307.65°)
OKLaboklab(41.05% 0.0616 -0.1664)
OKLCHoklch(41.05% 0.177 290.3)
XYZxyz(10.5195, 5.9628, 34.3080)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA1 #7DA12B
analogous
#2B42A1 #4F2BA1 #8A2BA1
triadic
#4F2BA1 #A14F2B #2BA14F
tetradic
#4F2BA1 #A12B42 #7DA12B #2BA18A
square
#4F2BA1 #A12B42 #7DA12B #2BA18A
split-complementary
#4F2BA1 #A18A2B #42A12B
monochromatic
#201140 #371E71 #4F2BA1 #693ECB #8E6ED8

Accessibility & contrast

On white

9.58
#4F2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BA1
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BA1#FFFFFF#000000##FFFFFF
##4F2BA11.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#334A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2ba1;
/* rgb */ color: rgb(79, 43, 161);
/* oklch */ color: oklch(41.1% 0.177 290.3);
Tailwind
colors: {
  custom: {
    50: '#8968be',
    500: '#4f2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba1;
$custom-light: #8968be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba1",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 258.305,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.41051,
    "c": 0.17743,
    "h": 290.3
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#4F2BA1
secondary
#A5BF69
accent
#E147B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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