#4F2BAE#4F2BAE

#4F2BAE is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.193 H 287.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4F2BAE
RGBrgb(79, 43, 174)
HSLhsl(256, 60%, 43%)
HSVhsv(256, 75%, 68%)
CMYKcmyk(54.6%, 75.3%, 0%, 31.8%)
CIE-LABlab(30.51, 48.44, -63.84)
CIE-LCHlch(30.51, 80.13, 307.19°)
OKLaboklab(42.26% 0.0584 -0.1836)
OKLCHoklch(42.26% 0.193 287.6)
XYZxyz(11.7260, 6.4454, 40.6624)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BAE #8AAE2B
analogous
#2B48AE #4F2BAE #912BAE
triadic
#4F2BAE #AE4F2B #2BAE4F
tetradic
#4F2BAE #AE2B48 #8AAE2B #2BAE91
square
#4F2BAE #AE2B48 #8AAE2B #2BAE91
split-complementary
#4F2BAE #AE912B #48AE2B
monochromatic
#22134C #391F7D #4F2BAE #6C45D1 #9376DD

Accessibility & contrast

On white

9.17
#4F2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4F2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BAE
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BAE#FFFFFF#000000##FFFFFF
##4F2BAE1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#274F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2bae;
/* rgb */ color: rgb(79, 43, 174);
/* oklch */ color: oklch(42.3% 0.193 287.6);
Tailwind
colors: {
  custom: {
    50: '#8b68c7',
    500: '#4f2bae',
    950: '#000000',
  },
}
SCSS
$custom: #4f2bae;
$custom-light: #8b68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2bae",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 256.489,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42256,
    "c": 0.19269,
    "h": 287.6
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#4F2BAE
secondary
#AEC570
accent
#E444B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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