#4F2CA7#4F2CA7

#4F2CA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.183 H 288.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA7
RGBrgb(79, 44, 167)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(52.7%, 73.7%, 0%, 34.5%)
CIE-LABlab(30.04, 45.93, -60.40)
CIE-LCHlch(30.04, 75.88, 307.25°)
OKLaboklab(41.73% 0.0593 -0.1736)
OKLCHoklch(41.73% 0.183 288.9)
XYZxyz(11.0981, 6.2531, 37.1739)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA7 #84A72C
analogous
#2C47A7 #4F2CA7 #8D2CA7
triadic
#4F2CA7 #A74F2C #2CA74F
tetradic
#4F2CA7 #A72C47 #84A72C #2CA78D
square
#4F2CA7 #A72C47 #84A72C #2CA78D
split-complementary
#4F2CA7 #A78D2C #47A72C
monochromatic
#211246 #381F77 #4F2CA7 #6A43CD #9173DA

Accessibility & contrast

On white

9.33
#4F2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2CA7
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA7#FFFFFF#000000##FFFFFF
##4F2CA71.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#2E4D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ca7;
/* rgb */ color: rgb(79, 44, 167);
/* oklch */ color: oklch(41.7% 0.183 288.9);
Tailwind
colors: {
  custom: {
    50: '#8969c2',
    500: '#4f2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca7;
$custom-light: #8969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca7",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 257.073,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4173,
    "c": 0.18342,
    "h": 288.9
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#4F2CA7
secondary
#AAC26D
accent
#E246B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4F2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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