#4F2DA7#4F2DA7

#4F2DA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.182 H 288.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4F2DA7
RGBrgb(79, 45, 167)
HSLhsl(257, 58%, 42%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.7%, 73.1%, 0%, 34.5%)
CIE-LABlab(30.23, 45.41, -60.10)
CIE-LCHlch(30.23, 75.32, 307.07°)
OKLaboklab(41.86% 0.0585 -0.1727)
OKLCHoklch(41.86% 0.182 288.7)
XYZxyz(11.1358, 6.3285, 37.1865)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DA7 #85A72D
analogous
#2D48A7 #4F2DA7 #8C2DA7
triadic
#4F2DA7 #A74F2D #2DA74F
tetradic
#4F2DA7 #A72D48 #85A72D #2DA78C
square
#4F2DA7 #A72D48 #85A72D #2DA78C
split-complementary
#4F2DA7 #A78C2D #48A72D
monochromatic
#211347 #382077 #4F2DA7 #6A44CD #9175DA

Accessibility & contrast

On white

9.27
#4F2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DA7
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DA7#FFFFFF#000000##FFFFFF
##4F2DA71.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#2E4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2da7;
/* rgb */ color: rgb(79, 45, 167);
/* oklch */ color: oklch(41.9% 0.182 288.7);
Tailwind
colors: {
  custom: {
    50: '#8969c2',
    500: '#4f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2da7;
$custom-light: #8969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2da7",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 256.721,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4186,
    "c": 0.18232,
    "h": 288.7
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#4F2DA7
secondary
#AAC16E
accent
#E147B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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