#4F2FB9#4F2FB9

#4F2FB9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.8% C 0.201 H 285.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4F2FB9
RGBrgb(79, 47, 185)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 75%, 73%)
CMYKcmyk(57.3%, 74.6%, 0%, 27.5%)
CIE-LABlab(32.25, 49.60, -67.52)
CIE-LCHlch(32.25, 83.78, 306.30°)
OKLaboklab(43.8% 0.0526 -0.1944)
OKLCHoklch(43.8% 0.201 285.1)
XYZxyz(12.9953, 7.1973, 46.5940)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FB9 #99B92F
analogous
#2F54B9 #4F2FB9 #942FB9
triadic
#4F2FB9 #B94F2F #2FB94F
tetradic
#4F2FB9 #B92F54 #99B92F #2FB994
square
#4F2FB9 #B92F54 #99B92F #2FB994
split-complementary
#4F2FB9 #B9942F #54B92F
monochromatic
#251657 #3A2388 #4F2FB9 #7052D3 #9883DF

Accessibility & contrast

On white

8.61
#4F2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4F2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FB9
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FB9#FFFFFF#000000##FFFFFF
##4F2FB91.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#185572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f2fb9;
/* rgb */ color: rgb(79, 47, 185);
/* oklch */ color: oklch(43.8% 0.201 285.1);
Tailwind
colors: {
  custom: {
    50: '#8c6bcf',
    500: '#4f2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fb9;
$custom-light: #8c6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fb9",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 253.913,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43797,
    "c": 0.20143,
    "h": 285.1
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#4F2FB9
secondary
#B7C97B
accent
#E345BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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