#4F28B6#4F28B6

#4F28B6 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.205 H 286.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4F28B6
RGBrgb(79, 40, 182)
HSLhsl(256, 64%, 44%)
HSVhsv(256, 78%, 71%)
CMYKcmyk(56.6%, 78%, 0%, 28.6%)
CIE-LABlab(30.78, 52.14, -68.17)
CIE-LCHlch(30.78, 85.82, 307.41°)
OKLaboklab(42.68% 0.0584 -0.1963)
OKLCHoklch(42.68% 0.205 286.6)
XYZxyz(12.4242, 6.5565, 44.8578)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28B6 #8FB628
analogous
#2848B6 #4F28B6 #9628B6
triadic
#4F28B6 #B64F28 #28B64F
tetradic
#4F28B6 #B62848 #8FB628 #28B696
square
#4F28B6 #B62848 #8FB628 #28B696
split-complementary
#4F28B6 #B69628 #48B628
monochromatic
#231252 #391D84 #4F28B6 #6D45D6 #9477E1

Accessibility & contrast

On white

9.09
#4F28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28B6
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28B6#FFFFFF#000000##FFFFFF
##4F28B61.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#1E516E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f28b6;
/* rgb */ color: rgb(79, 40, 182);
/* oklch */ color: oklch(42.7% 0.205 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c67cd',
    500: '#4f28b6',
    950: '#000000',
  },
}
SCSS
$custom: #4f28b6;
$custom-light: #8c67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28b6",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 256.479,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42675,
    "c": 0.20477,
    "h": 286.6
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#4F28B6
secondary
#B1C971
accent
#E741B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4F28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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