#4F2DAB#4F2DAB

#4F2DAB is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.187 H 287.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4F2DAB
RGBrgb(79, 45, 171)
HSLhsl(256, 58%, 42%)
HSVhsv(256, 74%, 67%)
CMYKcmyk(53.8%, 73.7%, 0%, 32.9%)
CIE-LABlab(30.59, 46.56, -61.91)
CIE-LCHlch(30.59, 77.47, 306.95°)
OKLaboklab(42.23% 0.0575 -0.178)
OKLCHoklch(42.23% 0.187 287.9)
XYZxyz(11.5114, 6.4787, 39.1641)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DAB #89AB2D
analogous
#2D4AAB #4F2DAB #8E2DAB
triadic
#4F2DAB #AB4F2D #2DAB4F
tetradic
#4F2DAB #AB2D4A #89AB2D #2DAB8E
square
#4F2DAB #AB2D4A #89AB2D #2DAB8E
split-complementary
#4F2DAB #AB8E2D #4AAB2D
monochromatic
#22144A #39207B #4F2DAB #6B47CE #9277DB

Accessibility & contrast

On white

9.15
#4F2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4F2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DAB
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DAB#FFFFFF#000000##FFFFFF
##4F2DAB1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#2A4F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2dab;
/* rgb */ color: rgb(79, 45, 171);
/* oklch */ color: oklch(42.2% 0.187 287.9);
Tailwind
colors: {
  custom: {
    50: '#8a69c5',
    500: '#4f2dab',
    950: '#000000',
  },
}
SCSS
$custom: #4f2dab;
$custom-light: #8a69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2dab",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 256.19,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.18706,
    "h": 287.9
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#4F2DAB
secondary
#ADC371
accent
#E246B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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