#4F28BD#4F28BD

#4F28BD is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.213 H 285.3°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#4F28BD
RGBrgb(79, 40, 189)
HSLhsl(256, 65%, 45%)
HSVhsv(256, 79%, 74%)
CMYKcmyk(58.2%, 78.8%, 0%, 25.9%)
CIE-LABlab(31.47, 54.09, -71.17)
CIE-LCHlch(31.47, 89.39, 307.24°)
OKLaboklab(43.37% 0.0563 -0.205)
OKLCHoklch(43.37% 0.213 285.3)
XYZxyz(13.1658, 6.8532, 48.7633)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28BD #96BD28
analogous
#284BBD #4F28BD #9A28BD
triadic
#4F28BD #BD4F28 #28BD4F
tetradic
#4F28BD #BD284B #96BD28 #28BD9A
square
#4F28BD #BD284B #96BD28 #28BD9A
split-complementary
#4F28BD #BD9A28 #4BBD28
monochromatic
#251358 #3A1D8A #4F28BD #6F4AD9 #977CE3

Accessibility & contrast

On white

8.86
#4F28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4F28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28BD
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28BD#FFFFFF#000000##FFFFFF
##4F28BD1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0045BA
Tritanopia (blue-blind)
#115472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f28bd;
/* rgb */ color: rgb(79, 40, 189);
/* oklch */ color: oklch(43.4% 0.213 285.3);
Tailwind
colors: {
  custom: {
    50: '#8d68d2',
    500: '#4f28bd',
    950: '#000000',
  },
}
SCSS
$custom: #4f28bd;
$custom-light: #8d68d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28bd",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 255.705,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43367,
    "c": 0.21263,
    "h": 285.3
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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