#4F28B5#4F28B5

#4F28B5 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.6% C 0.204 H 286.7°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4F28B5
RGBrgb(79, 40, 181)
HSLhsl(257, 64%, 43%)
HSVhsv(257, 78%, 71%)
CMYKcmyk(56.4%, 77.9%, 0%, 29%)
CIE-LABlab(30.68, 51.86, -67.74)
CIE-LCHlch(30.68, 85.31, 307.44°)
OKLaboklab(42.58% 0.0587 -0.195)
OKLCHoklch(42.58% 0.204 286.7)
XYZxyz(12.3212, 6.5154, 44.3154)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28B5 #8EB528
analogous
#2847B5 #4F28B5 #9528B5
triadic
#4F28B5 #B54F28 #28B54F
tetradic
#4F28B5 #B52847 #8EB528 #28B595
square
#4F28B5 #B52847 #8EB528 #28B595
split-complementary
#4F28B5 #B59528 #47B528
monochromatic
#231251 #391D83 #4F28B5 #6D44D6 #9477E1

Accessibility & contrast

On white

9.12
#4F28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4F28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28B5
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28B5#FFFFFF#000000##FFFFFF
##4F28B51.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#1F516E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f28b5;
/* rgb */ color: rgb(79, 40, 181);
/* oklch */ color: oklch(42.6% 0.204 286.7);
Tailwind
colors: {
  custom: {
    50: '#8c67cc',
    500: '#4f28b5',
    950: '#000000',
  },
}
SCSS
$custom: #4f28b5;
$custom-light: #8c67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28b5",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 256.596,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.20365,
    "h": 286.7
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#4F28B5
secondary
#B0C870
accent
#E741B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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