#4F2D9E#4F2D9E

#4F2D9E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.172 H 290.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4F2D9E
RGBrgb(79, 45, 158)
HSLhsl(258, 56%, 40%)
HSVhsv(258, 72%, 62%)
CMYKcmyk(50%, 71.5%, 0%, 38%)
CIE-LABlab(29.43, 42.81, -55.95)
CIE-LCHlch(29.43, 70.45, 307.42°)
OKLaboklab(41.05% 0.0604 -0.1605)
OKLCHoklch(41.05% 0.172 290.6)
XYZxyz(10.3326, 6.0072, 32.9562)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D9E #7C9E2D
analogous
#2D449E #4F2D9E #882D9E
triadic
#4F2D9E #9E4F2D #2D9E4F
tetradic
#4F2D9E #9E2D44 #7C9E2D #2D9E88
square
#4F2D9E #9E2D44 #7C9E2D #2D9E88
split-complementary
#4F2D9E #9E882D #449E2D
monochromatic
#1F123F #371F6E #4F2D9E #6940C9 #8E6FD6

Accessibility & contrast

On white

9.54
#4F2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2D9E
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D9E#FFFFFF#000000##FFFFFF
##4F2D9E1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#354A62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2d9e;
/* rgb */ color: rgb(79, 45, 158);
/* oklch */ color: oklch(41.0% 0.172 290.6);
Tailwind
colors: {
  custom: {
    50: '#8869bc',
    500: '#4f2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d9e;
$custom-light: #8869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d9e",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 258.053,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4105,
    "c": 0.17151,
    "h": 290.6
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#4F2D9E
secondary
#A4BD69
accent
#DF49B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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