#4F2BA7#4F2BA7

#4F2BA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.185 H 289.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4F2BA7
RGBrgb(79, 43, 167)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(52.7%, 74.3%, 0%, 34.5%)
CIE-LABlab(29.86, 46.44, -60.70)
CIE-LCHlch(29.86, 76.42, 307.42°)
OKLaboklab(41.6% 0.0602 -0.1744)
OKLCHoklch(41.6% 0.185 289)
XYZxyz(11.0613, 6.1795, 37.1617)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA7 #83A72B
analogous
#2B45A7 #4F2BA7 #8D2BA7
triadic
#4F2BA7 #A74F2B #2BA74F
tetradic
#4F2BA7 #A72B45 #83A72B #2BA78D
square
#4F2BA7 #A72B45 #83A72B #2BA78D
split-complementary
#4F2BA7 #A78D2B #45A72B
monochromatic
#211246 #381E76 #4F2BA7 #6A41CE #9072DB

Accessibility & contrast

On white

9.39
#4F2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BA7
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BA7#FFFFFF#000000##FFFFFF
##4F2BA71.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#2E4D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ba7;
/* rgb */ color: rgb(79, 43, 167);
/* oklch */ color: oklch(41.6% 0.185 289.0);
Tailwind
colors: {
  custom: {
    50: '#8a68c2',
    500: '#4f2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba7;
$custom-light: #8a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba7",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 257.419,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41601,
    "c": 0.18451,
    "h": 289
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#4F2BA7
secondary
#A9C26C
accent
#E246B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4F2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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