#4F2BA4#4F2BA4

#4F2BA4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.181 H 289.7°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4F2BA4
RGBrgb(79, 43, 164)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 74%, 64%)
CMYKcmyk(51.8%, 73.8%, 0%, 35.7%)
CIE-LABlab(29.59, 45.58, -59.33)
CIE-LCHlch(29.59, 74.82, 307.53°)
OKLaboklab(41.33% 0.0609 -0.1704)
OKLCHoklch(41.33% 0.181 289.7)
XYZxyz(10.7872, 6.0699, 35.7180)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA4 #80A42B
analogous
#2B44A4 #4F2BA4 #8B2BA4
triadic
#4F2BA4 #A44F2B #2BA44F
tetradic
#4F2BA4 #A42B44 #80A42B #2BA48B
square
#4F2BA4 #A42B44 #80A42B #2BA48B
split-complementary
#4F2BA4 #A48B2B #44A42B
monochromatic
#201243 #381E74 #4F2BA4 #693FCD #8F70D9

Accessibility & contrast

On white

9.49
#4F2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BA4
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BA4#FFFFFF#000000##FFFFFF
##4F2BA41.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#304B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ba4;
/* rgb */ color: rgb(79, 43, 164);
/* oklch */ color: oklch(41.3% 0.181 289.7);
Tailwind
colors: {
  custom: {
    50: '#8968c0',
    500: '#4f2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba4;
$custom-light: #8968c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba4",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 257.851,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41325,
    "c": 0.18098,
    "h": 289.7
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#4F2BA4
secondary
#A7C16A
accent
#E246B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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