#6D28A2#6D28A2

#6D28A2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.186 H 305.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#6D28A2
RGBrgb(109, 40, 162)
HSLhsl(274, 60%, 40%)
HSVhsv(274, 75%, 64%)
CMYKcmyk(32.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(32.65, 51.72, -52.97)
CIE-LCHlch(32.65, 74.03, 314.32°)
OKLaboklab(44.26% 0.1084 -0.1507)
OKLCHoklch(44.26% 0.186 305.7)
XYZxyz(13.5856, 7.3775, 34.8837)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D28A2 #5DA228
analogous
#3028A2 #6D28A2 #A2289A
triadic
#6D28A2 #A26D28 #28A26D
tetradic
#6D28A2 #A23028 #5DA228 #289AA2
square
#6D28A2 #A23028 #5DA228 #289AA2
split-complementary
#6D28A2 #9AA228 #28A230
monochromatic
#2B1040 #4C1C71 #6D28A2 #8D39CE #AA6ADA

Accessibility & contrast

On white

8.48
#6D28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6D28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D28A2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D28A2#FFFFFF#000000##FFFFFF
##6D28A21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#634663
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6d28a2;
/* rgb */ color: rgb(109, 40, 162);
/* oklch */ color: oklch(44.3% 0.186 305.7);
Tailwind
colors: {
  custom: {
    50: '#9c69be',
    500: '#6d28a2',
    950: '#000000',
  },
}
SCSS
$custom: #6d28a2;
$custom-light: #9c69be;
$custom-dark: #000000;
JSON
{
  "hex": "#6d28a2",
  "rgb": {
    "r": 109,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 273.934,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44263,
    "c": 0.18561,
    "h": 305.7
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#6D28A2
secondary
#8DC165
accent
#E44489
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6D28A2

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

Preview Lab → · Contrast checker → · Palette generator →

#6D28A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva