#6028A2#6028A2

#6028A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.183 H 299.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#6028A2
RGBrgb(96, 40, 162)
HSLhsl(268, 60%, 40%)
HSVhsv(268, 75%, 64%)
CMYKcmyk(40.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(30.91, 49.35, -55.88)
CIE-LCHlch(30.91, 74.56, 311.45°)
OKLaboklab(42.66% 0.0895 -0.1597)
OKLCHoklch(42.66% 0.183 299.3)
XYZxyz(12.1026, 6.6129, 34.8142)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6028A2 #6AA228
analogous
#282DA2 #6028A2 #9D28A2
triadic
#6028A2 #A26028 #28A260
tetradic
#6028A2 #A2282D #6AA228 #28A29D
square
#6028A2 #A2282D #6AA228 #28A29D
split-complementary
#6028A2 #A29D28 #2DA228
monochromatic
#261040 #431C71 #6028A2 #7D39CE #9E6ADA

Accessibility & contrast

On white

9.04
#6028A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6028A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6028A2
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6028A2#FFFFFF#000000##FFFFFF
##6028A21.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#504863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6028a2;
/* rgb */ color: rgb(96, 40, 162);
/* oklch */ color: oklch(42.7% 0.183 299.3);
Tailwind
colors: {
  custom: {
    50: '#9368be',
    500: '#6028a2',
    950: '#000000',
  },
}
SCSS
$custom: #6028a2;
$custom-light: #9368be;
$custom-dark: #000000;
JSON
{
  "hex": "#6028a2",
  "rgb": {
    "r": 96,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 267.541,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42658,
    "c": 0.18309,
    "h": 299.3
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#6028A2
secondary
#97C165
accent
#E4449A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6028A2

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

Preview Lab → · Contrast checker → · Palette generator →

#6028A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva