#4F28A7#4F28A7

#4F28A7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.188 H 289.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4F28A7
RGBrgb(79, 40, 167)
HSLhsl(258, 61%, 41%)
HSVhsv(258, 76%, 65%)
CMYKcmyk(52.7%, 76%, 0%, 34.5%)
CIE-LABlab(29.34, 47.93, -61.56)
CIE-LCHlch(29.34, 78.02, 307.90°)
OKLaboklab(41.23% 0.0626 -0.1769)
OKLCHoklch(41.23% 0.188 289.5)
XYZxyz(10.9563, 5.9694, 37.1266)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A7 #80A728
analogous
#2840A7 #4F28A7 #8E28A7
triadic
#4F28A7 #A74F28 #28A74F
tetradic
#4F28A7 #A72840 #80A728 #28A78E
square
#4F28A7 #A72840 #80A728 #28A78E
split-complementary
#4F28A7 #A78E28 #40A728
monochromatic
#201044 #381C76 #4F28A7 #693CD0 #8F6DDC

Accessibility & contrast

On white

9.57
#4F28A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F28A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A7
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A7#FFFFFF#000000##FFFFFF
##4F28A71.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#2E4B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f28a7;
/* rgb */ color: rgb(79, 40, 167);
/* oklch */ color: oklch(41.2% 0.188 289.5);
Tailwind
colors: {
  custom: {
    50: '#8a66c2',
    500: '#4f28a7',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a7;
$custom-light: #8a66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a7",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 258.425,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41231,
    "c": 0.18769,
    "h": 289.5
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#4F28A7
secondary
#A7C368
accent
#E443B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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