#4F2DB1#4F2DB1

#4F2DB1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.194 H 286.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#4F2DB1
RGBrgb(79, 45, 177)
HSLhsl(255, 59%, 44%)
HSVhsv(255, 75%, 69%)
CMYKcmyk(55.4%, 74.6%, 0%, 30.6%)
CIE-LABlab(31.14, 48.30, -64.59)
CIE-LCHlch(31.14, 80.65, 306.79°)
OKLaboklab(42.79% 0.0561 -0.1858)
OKLCHoklch(42.79% 0.194 286.8)
XYZxyz(12.0963, 6.7127, 42.2447)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2DB1 #8FB12D
analogous
#2D4DB1 #4F2DB1 #912DB1
triadic
#4F2DB1 #B14F2D #2DB14F
tetradic
#4F2DB1 #B12D4D #8FB12D #2DB191
square
#4F2DB1 #B12D4D #8FB12D #2DB191
split-complementary
#4F2DB1 #B1912D #4DB12D
monochromatic
#23144F #392180 #4F2DB1 #6D4AD1 #947BDD

Accessibility & contrast

On white

8.96
#4F2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4F2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2DB1
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2DB1#FFFFFF#000000##FFFFFF
##4F2DB11.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#24516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2db1;
/* rgb */ color: rgb(79, 45, 177);
/* oklch */ color: oklch(42.8% 0.194 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ac9',
    500: '#4f2db1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2db1;
$custom-light: #8b6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2db1",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 255.455,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42788,
    "c": 0.19412,
    "h": 286.8
  },
  "luminance": 0.06713
}

Semantic roles & 50–950 ramp

primary
#4F2DB1
secondary
#B1C674
accent
#E345BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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