#4F2DC4#4F2DC4

#4F2DC4 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.216 H 283.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4F2DC4
RGBrgb(79, 45, 196)
HSLhsl(254, 63%, 47%)
HSVhsv(254, 77%, 77%)
CMYKcmyk(59.7%, 77%, 0%, 23.1%)
CIE-LABlab(32.97, 53.75, -72.82)
CIE-LCHlch(32.97, 90.51, 306.43°)
OKLaboklab(44.62% 0.0511 -0.2099)
OKLCHoklch(44.62% 0.216 283.7)
XYZxyz(14.1236, 7.5236, 52.9218)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DC4 #A2C42D
analogous
#2D56C4 #4F2DC4 #9B2DC4
triadic
#4F2DC4 #C44F2D #2DC44F
tetradic
#4F2DC4 #C42D56 #A2C42D #2DC49B
square
#4F2DC4 #C42D56 #A2C42D #2DC49B
split-complementary
#4F2DC4 #C49B2D #56C42D
monochromatic
#271660 #3B2292 #4F2DC4 #7356D8 #9C88E4

Accessibility & contrast

On white

8.38
#4F2DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4F2DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DC4
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DC4#FFFFFF#000000##FFFFFF
##4F2DC41.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C8
Deuteranopia (green-blind)
#0049C1
Tritanopia (blue-blind)
#005978
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f2dc4;
/* rgb */ color: rgb(79, 45, 196);
/* oklch */ color: oklch(44.6% 0.216 283.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bd7',
    500: '#4f2dc4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2dc4;
$custom-light: #8e6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2dc4",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 253.51,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44621,
    "c": 0.21603,
    "h": 283.7
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#4F2DC4
secondary
#BCCD80
accent
#E642C1
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F2DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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