#4628AC#4628AC

#4628AC is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.194 H 284.2°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4628AC
RGBrgb(70, 40, 172)
HSLhsl(254, 62%, 42%)
HSVhsv(254, 77%, 67%)
CMYKcmyk(59.3%, 76.7%, 0%, 32.5%)
CIE-LABlab(28.90, 48.13, -65.32)
CIE-LCHlch(28.90, 81.14, 306.38°)
OKLaboklab(40.85% 0.0476 -0.1882)
OKLCHoklch(40.85% 0.194 284.2)
XYZxyz(10.7287, 5.7975, 39.5754)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4628AC #8EAC28
analogous
#284CAC #4628AC #8828AC
triadic
#4628AC #AC4628 #28AC46
tetradic
#4628AC #AC284C #8EAC28 #28AC88
square
#4628AC #AC284C #8EAC28 #28AC88
split-complementary
#4628AC #AC8828 #4CAC28
monochromatic
#1E1149 #321C7A #4628AC #603FD2 #8971DE

Accessibility & contrast

On white

9.72
#4628AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4628AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4628AC
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4628AC#FFFFFF#000000##FFFFFF
##4628AC1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#0040AA
Tritanopia (blue-blind)
#054E69
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4628ac;
/* rgb */ color: rgb(70, 40, 172);
/* oklch */ color: oklch(40.8% 0.194 284.2);
Tailwind
colors: {
  custom: {
    50: '#8666c6',
    500: '#4628ac',
    950: '#000000',
  },
}
SCSS
$custom: #4628ac;
$custom-light: #8666c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4628ac",
  "rgb": {
    "r": 70,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 253.636,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4085,
    "c": 0.19417,
    "h": 284.2
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#4628AC
secondary
#B0C56B
accent
#E542C0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4628AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4628AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva