#4F2DA5#4F2DA5

#4F2DA5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.180 H 289.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4F2DA5
RGBrgb(79, 45, 165)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.1%, 72.7%, 0%, 35.3%)
CIE-LABlab(30.05, 44.83, -59.19)
CIE-LCHlch(30.05, 74.25, 307.14°)
OKLaboklab(41.68% 0.0589 -0.17)
OKLCHoklch(41.68% 0.18 289.1)
XYZxyz(10.9524, 6.2552, 36.2203)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DA5 #83A52D
analogous
#2D47A5 #4F2DA5 #8B2DA5
triadic
#4F2DA5 #A54F2D #2DA54F
tetradic
#4F2DA5 #A52D47 #83A52D #2DA58B
square
#4F2DA5 #A52D47 #83A52D #2DA58B
split-complementary
#4F2DA5 #A58B2D #47A52D
monochromatic
#211345 #382075 #4F2DA5 #6A43CC #9073D9

Accessibility & contrast

On white

9.33
#4F2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DA5
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DA5#FFFFFF#000000##FFFFFF
##4F2DA51.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2F4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2da5;
/* rgb */ color: rgb(79, 45, 165);
/* oklch */ color: oklch(41.7% 0.180 289.1);
Tailwind
colors: {
  custom: {
    50: '#8969c1',
    500: '#4f2da5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2da5;
$custom-light: #8969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2da5",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 257,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41678,
    "c": 0.17993,
    "h": 289.1
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#4F2DA5
secondary
#A9C16D
accent
#E047B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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