#4F2EAF#4F2EAF

#4F2EAF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.191 H 287.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4F2EAF
RGBrgb(79, 46, 175)
HSLhsl(255, 58%, 43%)
HSVhsv(255, 74%, 69%)
CMYKcmyk(54.9%, 73.7%, 0%, 31.4%)
CIE-LABlab(31.14, 47.21, -63.40)
CIE-LCHlch(31.14, 79.05, 306.67°)
OKLaboklab(42.73% 0.0558 -0.1824)
OKLCHoklch(42.73% 0.191 287)
XYZxyz(11.9370, 6.7108, 41.2154)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EAF #8EAF2E
analogous
#2E4DAF #4F2EAF #8F2EAF
triadic
#4F2EAF #AF4F2E #2EAF4F
tetradic
#4F2EAF #AF2E4D #8EAF2E #2EAF8F
square
#4F2EAF #AF2E4D #8EAF2E #2EAF8F
split-complementary
#4F2EAF #AF8F2E #4DAF2E
monochromatic
#23154E #39217F #4F2EAF #6D4BD0 #947BDC

Accessibility & contrast

On white

8.97
#4F2EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2EAF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EAF#FFFFFF#000000##FFFFFF
##4F2EAF1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#26516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2eaf;
/* rgb */ color: rgb(79, 46, 175);
/* oklch */ color: oklch(42.7% 0.191 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ac8',
    500: '#4f2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eaf;
$custom-light: #8b6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eaf",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 255.349,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.19072,
    "h": 287
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#4F2EAF
secondary
#B0C574
accent
#E246BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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