#4F2FA0#4F2FA0

#4F2FA0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.172 H 289.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA0
RGBrgb(79, 47, 160)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 63%)
CMYKcmyk(50.6%, 70.6%, 0%, 37.3%)
CIE-LABlab(29.99, 42.31, -56.25)
CIE-LCHlch(29.99, 70.39, 306.95°)
OKLaboklab(41.5% 0.0581 -0.1614)
OKLCHoklch(41.5% 0.172 289.8)
XYZxyz(10.5843, 6.2329, 33.8963)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA0 #80A02F
analogous
#2F48A0 #4F2FA0 #872FA0
triadic
#4F2FA0 #A04F2F #2FA04F
tetradic
#4F2FA0 #A02F48 #80A02F #2FA087
square
#4F2FA0 #A02F48 #80A02F #2FA087
split-complementary
#4F2FA0 #A0872F #48A02F
monochromatic
#201341 #382171 #4F2FA0 #6944C8 #8F73D6

Accessibility & contrast

On white

9.35
#4F2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2FA0
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA0#FFFFFF#000000##FFFFFF
##4F2FA01.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#334C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2fa0;
/* rgb */ color: rgb(79, 47, 160);
/* oklch */ color: oklch(41.5% 0.172 289.8);
Tailwind
colors: {
  custom: {
    50: '#886abd',
    500: '#4f2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa0;
$custom-light: #886abd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa0",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 256.991,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41504,
    "c": 0.17154,
    "h": 289.8
  },
  "luminance": 0.06233
}

Semantic roles & 50–950 ramp

primary
#4F2FA0
secondary
#A7BE6D
accent
#DE4AB4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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