#4F2EA2#4F2EA2

#4F2EA2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.175 H 289.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA2
RGBrgb(79, 46, 162)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.2%, 71.6%, 0%, 36.5%)
CIE-LABlab(29.97, 43.43, -57.50)
CIE-LCHlch(29.97, 72.06, 307.07°)
OKLaboklab(41.54% 0.0586 -0.1651)
OKLCHoklch(41.54% 0.175 289.6)
XYZxyz(10.7211, 6.2244, 34.8119)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA2 #81A22E
analogous
#2E47A2 #4F2EA2 #892EA2
triadic
#4F2EA2 #A24F2E #2EA24F
tetradic
#4F2EA2 #A22E47 #81A22E #2EA289
square
#4F2EA2 #A22E47 #81A22E #2EA289
split-complementary
#4F2EA2 #A2892E #47A22E
monochromatic
#211343 #382072 #4F2EA2 #6A43CA #9073D7

Accessibility & contrast

On white

9.35
#4F2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EA2
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA2#FFFFFF#000000##FFFFFF
##4F2EA21.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#324C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ea2;
/* rgb */ color: rgb(79, 46, 162);
/* oklch */ color: oklch(41.5% 0.175 289.6);
Tailwind
colors: {
  custom: {
    50: '#896abe',
    500: '#4f2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea2;
$custom-light: #896abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea2",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 257.069,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.17517,
    "h": 289.6
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#4F2EA2
secondary
#A8BF6D
accent
#DF49B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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