#4F2AA8#4F2AA8

#4F2AA8 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.187 H 289.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4F2AA8
RGBrgb(79, 42, 168)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 66%)
CMYKcmyk(53%, 75%, 0%, 34.1%)
CIE-LABlab(29.77, 47.23, -61.44)
CIE-LCHlch(29.77, 77.49, 307.55°)
OKLaboklab(41.57% 0.0607 -0.1766)
OKLCHoklch(41.57% 0.187 289)
XYZxyz(11.1182, 6.1448, 37.6384)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AA8 #83A82A
analogous
#2A44A8 #4F2AA8 #8E2AA8
triadic
#4F2AA8 #A84F2A #2AA84F
tetradic
#4F2AA8 #A82A44 #83A82A #2AA88E
square
#4F2AA8 #A82A44 #83A82A #2AA88E
split-complementary
#4F2AA8 #A88E2A #44A82A
monochromatic
#211246 #381E77 #4F2AA8 #6A40CF #9071DB

Accessibility & contrast

On white

9.42
#4F2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AA8
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AA8#FFFFFF#000000##FFFFFF
##4F2AA81.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#2D4C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2aa8;
/* rgb */ color: rgb(79, 42, 168);
/* oklch */ color: oklch(41.6% 0.187 289.0);
Tailwind
colors: {
  custom: {
    50: '#8a68c3',
    500: '#4f2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aa8;
$custom-light: #8a68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aa8",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 257.619,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41569,
    "c": 0.18676,
    "h": 289
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#4F2AA8
secondary
#A9C36B
accent
#E345B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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