#4F28AF#4F28AF

#4F28AF is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.197 H 287.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4F28AF
RGBrgb(79, 40, 175)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 69%)
CMYKcmyk(54.9%, 77.1%, 0%, 31.4%)
CIE-LABlab(30.09, 50.17, -65.12)
CIE-LCHlch(30.09, 82.21, 307.62°)
OKLaboklab(41.99% 0.0604 -0.1873)
OKLCHoklch(41.99% 0.197 287.9)
XYZxyz(11.7188, 6.2744, 41.1427)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28AF #88AF28
analogous
#2845AF #4F28AF #9228AF
triadic
#4F28AF #AF4F28 #28AF4F
tetradic
#4F28AF #AF2845 #88AF28 #28AF92
square
#4F28AF #AF2845 #88AF28 #28AF92
split-complementary
#4F28AF #AF9228 #45AF28
monochromatic
#22114B #391D7D #4F28AF #6B41D4 #9273DF

Accessibility & contrast

On white

9.31
#4F28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28AF
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28AF#FFFFFF#000000##FFFFFF
##4F28AF1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#274E6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f28af;
/* rgb */ color: rgb(79, 40, 175);
/* oklch */ color: oklch(42.0% 0.197 287.9);
Tailwind
colors: {
  custom: {
    50: '#8b67c8',
    500: '#4f28af',
    950: '#000000',
  },
}
SCSS
$custom: #4f28af;
$custom-light: #8b67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28af",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 257.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41994,
    "c": 0.19684,
    "h": 287.9
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#4F28AF
secondary
#ACC66D
accent
#E642B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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