#4F28BC#4F28BC

#4F28BC is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.3% C 0.212 H 285.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#4F28BC
RGBrgb(79, 40, 188)
HSLhsl(256, 65%, 45%)
HSVhsv(256, 79%, 74%)
CMYKcmyk(58%, 78.7%, 0%, 26.3%)
CIE-LABlab(31.37, 53.81, -70.75)
CIE-LCHlch(31.37, 88.89, 307.26°)
OKLaboklab(43.27% 0.0566 -0.2038)
OKLCHoklch(43.27% 0.212 285.5)
XYZxyz(13.0576, 6.8099, 48.1936)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28BC #95BC28
analogous
#284BBC #4F28BC #9928BC
triadic
#4F28BC #BC4F28 #28BC4F
tetradic
#4F28BC #BC284B #95BC28 #28BC99
square
#4F28BC #BC284B #95BC28 #28BC99
split-complementary
#4F28BC #BC9928 #4BBC28
monochromatic
#251357 #3A1D8A #4F28BC #6F49D8 #977BE3

Accessibility & contrast

On white

8.89
#4F28BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4F28BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28BC
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28BC#FFFFFF#000000##FFFFFF
##4F28BC1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#135472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f28bc;
/* rgb */ color: rgb(79, 40, 188);
/* oklch */ color: oklch(43.3% 0.212 285.5);
Tailwind
colors: {
  custom: {
    50: '#8d68d1',
    500: '#4f28bc',
    950: '#000000',
  },
}
SCSS
$custom: #4f28bc;
$custom-light: #8d68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28bc",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 255.811,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43268,
    "c": 0.21151,
    "h": 285.5
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#4F28BC
secondary
#B4CB75
accent
#E840BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #4F28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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