#4828AF#4828AF

#4828AF is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.197 H 284.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4828AF
RGBrgb(72, 40, 175)
HSLhsl(254, 63%, 42%)
HSVhsv(254, 77%, 69%)
CMYKcmyk(58.9%, 77.1%, 0%, 31.4%)
CIE-LABlab(29.39, 49.26, -66.31)
CIE-LCHlch(29.39, 82.60, 306.61°)
OKLaboklab(41.33% 0.0498 -0.191)
OKLCHoklch(41.33% 0.197 284.6)
XYZxyz(11.1668, 5.9897, 41.1168)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828AF #8FAF28
analogous
#284CAF #4828AF #8C28AF
triadic
#4828AF #AF4828 #28AF48
tetradic
#4828AF #AF284C #8FAF28 #28AF8C
square
#4828AF #AF284C #8FAF28 #28AF8C
split-complementary
#4828AF #AF8C28 #4CAF28
monochromatic
#1F114B #341D7D #4828AF #6341D4 #8C73DF

Accessibility & contrast

On white

9.55
#4828AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4828AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4828AF
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4828AF#FFFFFF#000000##FFFFFF
##4828AF1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#0A4F6A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4828af;
/* rgb */ color: rgb(72, 40, 175);
/* oklch */ color: oklch(41.3% 0.197 284.6);
Tailwind
colors: {
  custom: {
    50: '#8766c8',
    500: '#4828af',
    950: '#000000',
  },
}
SCSS
$custom: #4828af;
$custom-light: #8766c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4828af",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 254.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4133,
    "c": 0.19743,
    "h": 284.6
  },
  "luminance": 0.0599
}

Semantic roles & 50–950 ramp

primary
#4828AF
secondary
#B1C66D
accent
#E642BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4828AF

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

Preview Lab → · Contrast checker → · Palette generator →

#4828AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva