#4F2EA3#4F2EA3

#4F2EA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.176 H 289.3°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA3
RGBrgb(79, 46, 163)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.5%, 71.8%, 0%, 36.1%)
CIE-LABlab(30.06, 43.72, -57.96)
CIE-LCHlch(30.06, 72.60, 307.03°)
OKLaboklab(41.63% 0.0584 -0.1664)
OKLCHoklch(41.63% 0.176 289.3)
XYZxyz(10.8104, 6.2601, 35.2819)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA3 #82A32E
analogous
#2E47A3 #4F2EA3 #892EA3
triadic
#4F2EA3 #A34F2E #2EA34F
tetradic
#4F2EA3 #A32E47 #82A32E #2EA389
square
#4F2EA3 #A32E47 #82A32E #2EA389
split-complementary
#4F2EA3 #A3892E #47A32E
monochromatic
#211344 #382173 #4F2EA3 #6A44CA #9074D8

Accessibility & contrast

On white

9.32
#4F2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2EA3
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA3#FFFFFF#000000##FFFFFF
##4F2EA31.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#314D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ea3;
/* rgb */ color: rgb(79, 46, 163);
/* oklch */ color: oklch(41.6% 0.176 289.3);
Tailwind
colors: {
  custom: {
    50: '#896abf',
    500: '#4f2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea3;
$custom-light: #896abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea3",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 256.923,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41632,
    "c": 0.17638,
    "h": 289.3
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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