#4F2FA9#4F2FA9

#4F2FA9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.182 H 288.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA9
RGBrgb(79, 47, 169)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 66%)
CMYKcmyk(53.3%, 72.2%, 0%, 33.7%)
CIE-LABlab(30.78, 44.94, -60.39)
CIE-LCHlch(30.78, 75.28, 306.65°)
OKLaboklab(42.31% 0.0563 -0.1736)
OKLCHoklch(42.31% 0.182 288)
XYZxyz(11.4003, 6.5593, 38.1938)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA9 #89A92F
analogous
#2F4CA9 #4F2FA9 #8C2FA9
triadic
#4F2FA9 #A94F2F #2FA94F
tetradic
#4F2FA9 #A92F4C #89A92F #2FA98C
square
#4F2FA9 #A92F4C #89A92F #2FA98C
split-complementary
#4F2FA9 #A98C2F #4CA92F
monochromatic
#221449 #392279 #4F2FA9 #6B49CC #9279DA

Accessibility & contrast

On white

9.08
#4F2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA9
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA9#FFFFFF#000000##FFFFFF
##4F2FA91.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#2C4F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2fa9;
/* rgb */ color: rgb(79, 47, 169);
/* oklch */ color: oklch(42.3% 0.182 288.0);
Tailwind
colors: {
  custom: {
    50: '#8a6bc4',
    500: '#4f2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa9;
$custom-light: #8a6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa9",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 255.738,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42309,
    "c": 0.18246,
    "h": 288
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#4F2FA9
secondary
#ADC272
accent
#E048B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4F2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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