#4F2BA2#4F2BA2

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

Color values

HEX#4F2BA2
RGBrgb(79, 43, 162)
HSLhsl(258, 58%, 40%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(51.2%, 73.5%, 0%, 36.5%)
CIE-LABlab(29.41, 45.01, -58.42)
CIE-LCHlch(29.41, 73.75, 307.61°)
OKLaboklab(41.14% 0.0613 -0.1677)
OKLCHoklch(41.14% 0.179 290.1)
XYZxyz(10.6080, 5.9982, 34.7742)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA2 #7EA22B
analogous
#2B43A2 #4F2BA2 #8A2BA2
triadic
#4F2BA2 #A24F2B #2BA24F
tetradic
#4F2BA2 #A22B43 #7EA22B #2BA28A
square
#4F2BA2 #A22B43 #7EA22B #2BA28A
split-complementary
#4F2BA2 #A28A2B #43A22B
monochromatic
#201141 #371E72 #4F2BA2 #693ECC #8F6FD9

Accessibility & contrast

On white

9.55
#4F2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BA2
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BA2#FFFFFF#000000##FFFFFF
##4F2BA21.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#324B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2ba2;
/* rgb */ color: rgb(79, 43, 162);
/* oklch */ color: oklch(41.1% 0.179 290.1);
Tailwind
colors: {
  custom: {
    50: '#8968bf',
    500: '#4f2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba2;
$custom-light: #8968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba2",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 258.151,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41142,
    "c": 0.17861,
    "h": 290.1
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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