#4F2A82#4F2A82

#4F2A82 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.141 H 298.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4F2A82
RGBrgb(79, 42, 130)
HSLhsl(265, 51%, 34%)
HSVhsv(265, 68%, 51%)
CMYKcmyk(39.2%, 67.7%, 0%, 49%)
CIE-LABlab(26.53, 36.52, -43.38)
CIE-LCHlch(26.53, 56.71, 310.09°)
OKLaboklab(38.26% 0.0681 -0.1236)
OKLCHoklch(38.26% 0.141 298.9)
XYZxyz(8.0807, 4.9298, 21.6406)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A82 #5D822A
analogous
#2A3182 #4F2A82 #7B2A82
triadic
#4F2A82 #824F2A #2A824F
tetradic
#4F2A82 #822A31 #5D822A #2A827B
square
#4F2A82 #822A31 #5D822A #2A827B
split-complementary
#4F2A82 #827B2A #31822A
monochromatic
#170C25 #331B54 #4F2A82 #6B39B0 #8A5CCA

Accessibility & contrast

On white

10.57
#4F2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4F2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A82
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A82#FFFFFF#000000##FFFFFF
##4F2A821.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#433E52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2a82;
/* rgb */ color: rgb(79, 42, 130);
/* oklch */ color: oklch(38.3% 0.141 298.9);
Tailwind
colors: {
  custom: {
    50: '#8566a7',
    500: '#4f2a82',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a82;
$custom-light: #8566a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a82",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 265.227,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38257,
    "c": 0.1411,
    "h": 298.9
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#4F2A82
secondary
#8BB058
accent
#DB4D9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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