#4F2FA5#4F2FA5

#4F2FA5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.178 H 288.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA5
RGBrgb(79, 47, 165)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(52.1%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.43, 43.77, -58.56)
CIE-LCHlch(30.43, 73.11, 306.77°)
OKLaboklab(41.95% 0.0571 -0.1682)
OKLCHoklch(41.95% 0.178 288.8)
XYZxyz(11.0305, 6.4114, 36.2463)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA5 #85A52F
analogous
#2F4AA5 #4F2FA5 #8A2FA5
triadic
#4F2FA5 #A54F2F #2FA54F
tetradic
#4F2FA5 #A52F4A #85A52F #2FA58A
square
#4F2FA5 #A52F4A #85A52F #2FA58A
split-complementary
#4F2FA5 #A58A2F #4AA52F
monochromatic
#211446 #382175 #4F2FA5 #6A47CB #9176D8

Accessibility & contrast

On white

9.20
#4F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4F2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA5
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA5#FFFFFF#000000##FFFFFF
##4F2FA51.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#2F4E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2fa5;
/* rgb */ color: rgb(79, 47, 165);
/* oklch */ color: oklch(41.9% 0.178 288.8);
Tailwind
colors: {
  custom: {
    50: '#896ac1',
    500: '#4f2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa5;
$custom-light: #896ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa5",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 256.271,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41948,
    "c": 0.17763,
    "h": 288.8
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#4F2FA5
secondary
#AAC070
accent
#DF49B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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