#4F2EA8#4F2EA8

#4F2EA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.182 H 288.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA8
RGBrgb(79, 46, 168)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 73%, 66%)
CMYKcmyk(53%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.50, 45.17, -60.25)
CIE-LCHlch(30.50, 75.30, 306.86°)
OKLaboklab(42.08% 0.0574 -0.1731)
OKLCHoklch(42.08% 0.182 288.3)
XYZxyz(11.2673, 6.4429, 37.6881)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA8 #87A82E
analogous
#2E4AA8 #4F2EA8 #8C2EA8
triadic
#4F2EA8 #A84F2E #2EA84F
tetradic
#4F2EA8 #A82E4A #87A82E #2EA88C
square
#4F2EA8 #A82E4A #87A82E #2EA88C
split-complementary
#4F2EA8 #A88C2E #4AA82E
monochromatic
#221448 #382178 #4F2EA8 #6B47CD #9177DA

Accessibility & contrast

On white

9.18
#4F2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4F2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EA8
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA8#FFFFFF#000000##FFFFFF
##4F2EA81.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#2D4E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2ea8;
/* rgb */ color: rgb(79, 46, 168);
/* oklch */ color: oklch(42.1% 0.182 288.3);
Tailwind
colors: {
  custom: {
    50: '#896ac3',
    500: '#4f2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea8;
$custom-light: #896ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea8",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 256.23,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42084,
    "c": 0.18239,
    "h": 288.3
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#4F2EA8
secondary
#ACC270
accent
#E048B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4F2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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