#4F2CAF#4F2CAF

#4F2CAF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.193 H 287.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4F2CAF
RGBrgb(79, 44, 175)
HSLhsl(256, 60%, 43%)
HSVhsv(256, 75%, 69%)
CMYKcmyk(54.9%, 74.9%, 0%, 31.4%)
CIE-LABlab(30.78, 48.22, -63.99)
CIE-LCHlch(30.78, 80.13, 307.00°)
OKLaboklab(42.47% 0.0574 -0.1841)
OKLCHoklch(42.47% 0.193 287.3)
XYZxyz(11.8607, 6.5582, 41.1900)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CAF #8CAF2C
analogous
#2C4AAF #4F2CAF #912CAF
triadic
#4F2CAF #AF4F2C #2CAF4F
tetradic
#4F2CAF #AF2C4A #8CAF2C #2CAF91
square
#4F2CAF #AF2C4A #8CAF2C #2CAF91
split-complementary
#4F2CAF #AF912C #4AAF2C
monochromatic
#23134D #39207E #4F2CAF #6C47D1 #9378DD

Accessibility & contrast

On white

9.08
#4F2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F2CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CAF
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CAF#FFFFFF#000000##FFFFFF
##4F2CAF1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#26506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2caf;
/* rgb */ color: rgb(79, 44, 175);
/* oklch */ color: oklch(42.5% 0.193 287.3);
Tailwind
colors: {
  custom: {
    50: '#8b69c8',
    500: '#4f2caf',
    950: '#000000',
  },
}
SCSS
$custom: #4f2caf;
$custom-light: #8b69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2caf",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 256.031,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42474,
    "c": 0.19282,
    "h": 287.3
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#4F2CAF
secondary
#AFC572
accent
#E345B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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