#4F2FB7#4F2FB7

#4F2FB7 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.199 H 285.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4F2FB7
RGBrgb(79, 47, 183)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 74%, 72%)
CMYKcmyk(56.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(32.06, 49.02, -66.65)
CIE-LCHlch(32.06, 82.73, 306.34°)
OKLaboklab(43.61% 0.0531 -0.1919)
OKLCHoklch(43.61% 0.199 285.5)
XYZxyz(12.7856, 7.1134, 45.4899)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FB7 #97B72F
analogous
#2F53B7 #4F2FB7 #932FB7
triadic
#4F2FB7 #B74F2F #2FB74F
tetradic
#4F2FB7 #B72F53 #97B72F #2FB793
square
#4F2FB7 #B72F53 #97B72F #2FB793
split-complementary
#4F2FB7 #B7932F #53B72F
monochromatic
#251656 #3A2286 #4F2FB7 #6F51D2 #9882DF

Accessibility & contrast

On white

8.67
#4F2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4F2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FB7
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FB7#FFFFFF#000000##FFFFFF
##4F2FB71.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#1C5571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f2fb7;
/* rgb */ color: rgb(79, 47, 183);
/* oklch */ color: oklch(43.6% 0.199 285.5);
Tailwind
colors: {
  custom: {
    50: '#8c6bce',
    500: '#4f2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fb7;
$custom-light: #8c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fb7",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 254.118,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43607,
    "c": 0.19909,
    "h": 285.5
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#4F2FB7
secondary
#B6C87A
accent
#E245BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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