#4F28B4#4F28B4

#4F28B4 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.203 H 286.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4F28B4
RGBrgb(79, 40, 180)
HSLhsl(257, 64%, 43%)
HSVhsv(257, 78%, 71%)
CMYKcmyk(56.1%, 77.8%, 0%, 29.4%)
CIE-LABlab(30.58, 51.58, -67.30)
CIE-LCHlch(30.58, 84.79, 307.46°)
OKLaboklab(42.48% 0.0589 -0.1937)
OKLCHoklch(42.48% 0.203 286.9)
XYZxyz(12.2190, 6.4745, 43.7770)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28B4 #8DB428
analogous
#2847B4 #4F28B4 #9528B4
triadic
#4F28B4 #B44F28 #28B44F
tetradic
#4F28B4 #B42847 #8DB428 #28B495
square
#4F28B4 #B42847 #8DB428 #28B495
split-complementary
#4F28B4 #B49528 #47B428
monochromatic
#231250 #391D82 #4F28B4 #6C44D5 #9476E1

Accessibility & contrast

On white

9.15
#4F28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F28B4
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28B4#FFFFFF#000000##FFFFFF
##4F28B41.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#21506D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f28b4;
/* rgb */ color: rgb(79, 40, 180);
/* oklch */ color: oklch(42.5% 0.203 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c67cc',
    500: '#4f28b4',
    950: '#000000',
  },
}
SCSS
$custom: #4f28b4;
$custom-light: #8c67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28b4",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 256.714,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42479,
    "c": 0.20252,
    "h": 286.9
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#4F28B4
secondary
#AFC870
accent
#E741B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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