#4F2FA7#4F2FA7

#4F2FA7 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.180 H 288.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4F2FA7
RGBrgb(79, 47, 167)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(52.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.60, 44.35, -59.48)
CIE-LCHlch(30.60, 74.20, 306.71°)
OKLaboklab(42.13% 0.0567 -0.1709)
OKLCHoklch(42.13% 0.18 288.4)
XYZxyz(11.2140, 6.4848, 37.2125)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FA7 #87A72F
analogous
#2F4BA7 #4F2FA7 #8B2FA7
triadic
#4F2FA7 #A74F2F #2FA74F
tetradic
#4F2FA7 #A72F4B #87A72F #2FA78B
square
#4F2FA7 #A72F4B #87A72F #2FA78B
split-complementary
#4F2FA7 #A78B2F #4BA72F
monochromatic
#221447 #382277 #4F2FA7 #6B48CB #9178D9

Accessibility & contrast

On white

9.14
#4F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4F2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FA7
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FA7#FFFFFF#000000##FFFFFF
##4F2FA71.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#2E4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2fa7;
/* rgb */ color: rgb(79, 47, 167);
/* oklch */ color: oklch(42.1% 0.180 288.4);
Tailwind
colors: {
  custom: {
    50: '#896ac2',
    500: '#4f2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fa7;
$custom-light: #896ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fa7",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 256,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42128,
    "c": 0.18005,
    "h": 288.4
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#4F2FA7
secondary
#ACC171
accent
#DF48B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #4F2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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