#4F2DB8#4F2DB8

#4F2DB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.202 H 285.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#4F2DB8
RGBrgb(79, 45, 184)
HSLhsl(255, 61%, 45%)
HSVhsv(255, 76%, 72%)
CMYKcmyk(57.1%, 75.5%, 0%, 27.8%)
CIE-LABlab(31.80, 50.31, -67.66)
CIE-LCHlch(31.80, 84.32, 306.63°)
OKLaboklab(43.45% 0.0543 -0.1948)
OKLCHoklch(43.45% 0.202 285.6)
XYZxyz(12.8119, 6.9990, 46.0139)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DB8 #96B82D
analogous
#2D51B8 #4F2DB8 #942DB8
triadic
#4F2DB8 #B84F2D #2DB84F
tetradic
#4F2DB8 #B82D51 #96B82D #2DB894
square
#4F2DB8 #B82D51 #96B82D #2DB894
split-complementary
#4F2DB8 #B8942D #51B82D
monochromatic
#251556 #3A2187 #4F2DB8 #6F4ED4 #9780E0

Accessibility & contrast

On white

8.75
#4F2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2DB8
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DB8#FFFFFF#000000##FFFFFF
##4F2DB81.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#1A5471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f2db8;
/* rgb */ color: rgb(79, 45, 184);
/* oklch */ color: oklch(43.5% 0.202 285.6);
Tailwind
colors: {
  custom: {
    50: '#8c6acf',
    500: '#4f2db8',
    950: '#000000',
  },
}
SCSS
$custom: #4f2db8;
$custom-light: #8c6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2db8",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 254.676,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43453,
    "c": 0.20227,
    "h": 285.6
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

primary
#4F2DB8
secondary
#B5C978
accent
#E444BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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