#4F2AB9#4F2AB9

#4F2AB9 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.206 H 285.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4F2AB9
RGBrgb(79, 42, 185)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(57.3%, 77.3%, 0%, 27.5%)
CIE-LABlab(31.39, 52.05, -68.93)
CIE-LCHlch(31.39, 86.37, 307.05°)
OKLaboklab(43.2% 0.0561 -0.1985)
OKLCHoklch(43.2% 0.206 285.8)
XYZxyz(12.8067, 6.8202, 46.5311)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AB9 #94B92A
analogous
#2A4DB9 #4F2AB9 #962AB9
triadic
#4F2AB9 #B94F2A #2AB94F
tetradic
#4F2AB9 #B92A4D #94B92A #2AB996
square
#4F2AB9 #B92A4D #94B92A #2AB996
split-complementary
#4F2AB9 #B9962A #4DB92A
monochromatic
#241355 #3A1F87 #4F2AB9 #6E4AD6 #967CE1

Accessibility & contrast

On white

8.88
#4F2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4F2AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AB9
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AB9#FFFFFF#000000##FFFFFF
##4F2AB91.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#195371
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f2ab9;
/* rgb */ color: rgb(79, 42, 185);
/* oklch */ color: oklch(43.2% 0.206 285.8);
Tailwind
colors: {
  custom: {
    50: '#8c68cf',
    500: '#4f2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ab9;
$custom-light: #8c68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ab9",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 255.524,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43195,
    "c": 0.20631,
    "h": 285.8
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#4F2AB9
secondary
#B4CA75
accent
#E642BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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