#4F1EA8#4F1EA8

#4F1EA8 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.198 H 290.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#4F1EA8
RGBrgb(79, 30, 168)
HSLhsl(261, 70%, 39%)
HSVhsv(261, 82%, 66%)
CMYKcmyk(53%, 82.1%, 0%, 34.1%)
CIE-LABlab(27.89, 52.64, -64.54)
CIE-LCHlch(27.89, 83.28, 309.21°)
OKLaboklab(40.26% 0.0694 -0.1855)
OKLCHoklch(40.26% 0.198 290.5)
XYZxyz(10.7546, 5.4175, 37.5172)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1EA8 #77A81E
analogous
#1E32A8 #4F1EA8 #941EA8
triadic
#4F1EA8 #A84F1E #1EA84F
tetradic
#4F1EA8 #A81E32 #77A81E #1EA894
square
#4F1EA8 #A81E32 #77A81E #1EA894
split-complementary
#4F1EA8 #A8941E #32A81E
monochromatic
#1E0B40 #371574 #4F1EA8 #682AD9 #8D5EE2

Accessibility & contrast

On white

10.08
#4F1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4F1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1EA8
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1EA8#FFFFFF#000000##FFFFFF
##4F1EA81.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#2E4764
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f1ea8;
/* rgb */ color: rgb(79, 30, 168);
/* oklch */ color: oklch(40.3% 0.198 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b61c3',
    500: '#4f1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4f1ea8;
$custom-light: #8b61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1ea8",
  "rgb": {
    "r": 79,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 261.304,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40256,
    "c": 0.19812,
    "h": 290.5
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#4F1EA8
secondary
#A0C75B
accent
#ED3BAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4F1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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