#4F28A8#4F28A8

#4F28A8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.189 H 289.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4F28A8
RGBrgb(79, 40, 168)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 76%, 66%)
CMYKcmyk(53%, 76.2%, 0%, 34.1%)
CIE-LABlab(29.43, 48.21, -62.01)
CIE-LCHlch(29.43, 78.55, 307.86°)
OKLaboklab(41.33% 0.0623 -0.1783)
OKLCHoklch(41.33% 0.189 289.3)
XYZxyz(11.0491, 6.0065, 37.6154)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28A8 #81A828
analogous
#2841A8 #4F28A8 #8F28A8
triadic
#4F28A8 #A84F28 #28A84F
tetradic
#4F28A8 #A82841 #81A828 #28A88F
square
#4F28A8 #A82841 #81A828 #28A88F
split-complementary
#4F28A8 #A88F28 #41A828
monochromatic
#211045 #381C77 #4F28A8 #6A3DD1 #906EDC

Accessibility & contrast

On white

9.54
#4F28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28A8
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28A8#FFFFFF#000000##FFFFFF
##4F28A81.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#2D4C66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f28a8;
/* rgb */ color: rgb(79, 40, 168);
/* oklch */ color: oklch(41.3% 0.189 289.3);
Tailwind
colors: {
  custom: {
    50: '#8a66c3',
    500: '#4f28a8',
    950: '#000000',
  },
}
SCSS
$custom: #4f28a8;
$custom-light: #8a66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28a8",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 258.281,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.18884,
    "h": 289.3
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#4F28A8
secondary
#A8C369
accent
#E543B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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