#4F28D1#4F28D1

#4F28D1 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.4% C 0.235 H 282.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#4F28D1
RGBrgb(79, 40, 209)
HSLhsl(254, 68%, 49%)
HSVhsv(254, 81%, 82%)
CMYKcmyk(62.2%, 80.9%, 0%, 18%)
CIE-LABlab(33.53, 59.63, -79.48)
CIE-LCHlch(33.53, 99.36, 306.88°)
OKLaboklab(45.4% 0.05 -0.2293)
OKLCHoklch(45.4% 0.235 282.3)
XYZxyz(15.4883, 7.7822, 60.9952)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28D1 #AAD128
analogous
#2856D1 #4F28D1 #A428D1
triadic
#4F28D1 #D14F28 #28D14F
tetradic
#4F28D1 #D12856 #AAD128 #28D1A4
square
#4F28D1 #D12856 #AAD128 #28D1A4
split-complementary
#4F28D1 #D1A428 #56D128
monochromatic
#28146A #3C1E9E #4F28D1 #7757DF #A08BE9

Accessibility & contrast

On white

8.21
#4F28D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4F28D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28D1
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28D1#FFFFFF#000000##FFFFFF
##4F28D11.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D6
Deuteranopia (green-blind)
#0049CE
Tritanopia (blue-blind)
#005C7E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4f28d1;
/* rgb */ color: rgb(79, 40, 209);
/* oklch */ color: oklch(45.4% 0.235 282.3);
Tailwind
colors: {
  custom: {
    50: '#9169e1',
    500: '#4f28d1',
    950: '#000000',
  },
}
SCSS
$custom: #4f28d1;
$custom-light: #9169e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28d1",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 253.846,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.454,
    "c": 0.23467,
    "h": 282.3
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#4F28D1
secondary
#C0D382
accent
#EB3DC3
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0715
muted
#7E7A84

Preview Lab

Preview with #4F28D1

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

Preview Lab → · Contrast checker → · Palette generator →

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