#4F2FB4#4F2FB4

#4F2FB4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.196 H 286.0°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4F2FB4
RGBrgb(79, 47, 180)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 74%, 71%)
CMYKcmyk(56.1%, 73.9%, 0%, 29.4%)
CIE-LABlab(31.78, 48.15, -65.32)
CIE-LCHlch(31.78, 81.15, 306.39°)
OKLaboklab(43.33% 0.0538 -0.188)
OKLCHoklch(43.33% 0.196 286)
XYZxyz(12.4767, 6.9899, 43.8629)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FB4 #94B42F
analogous
#2F52B4 #4F2FB4 #922FB4
triadic
#4F2FB4 #B44F2F #2FB44F
tetradic
#4F2FB4 #B42F52 #94B42F #2FB492
square
#4F2FB4 #B42F52 #94B42F #2FB492
split-complementary
#4F2FB4 #B4922F #52B42F
monochromatic
#241653 #3A2283 #4F2FB4 #6E4FD1 #9680DE

Accessibility & contrast

On white

8.76
#4F2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4F2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FB4
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FB4#FFFFFF#000000##FFFFFF
##4F2FB41.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#20546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f2fb4;
/* rgb */ color: rgb(79, 47, 180);
/* oklch */ color: oklch(43.3% 0.196 286.0);
Tailwind
colors: {
  custom: {
    50: '#8b6bcc',
    500: '#4f2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fb4;
$custom-light: #8b6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fb4",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 254.436,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43325,
    "c": 0.19556,
    "h": 286
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#4F2FB4
secondary
#B4C778
accent
#E246BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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