#6D28C4#6D28C4

#6D28C4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.220 H 296.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#6D28C4
RGBrgb(109, 40, 196)
HSLhsl(267, 66%, 46%)
HSVhsv(267, 80%, 77%)
CMYKcmyk(44.4%, 79.6%, 0%, 23.1%)
CIE-LABlab(35.51, 59.85, -68.53)
CIE-LCHlch(35.51, 90.99, 311.13°)
OKLaboklab(47.14% 0.0995 -0.1964)
OKLCHoklch(47.14% 0.22 296.9)
XYZxyz(17.0266, 8.7539, 53.0064)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D28C4 #7FC428
analogous
#2831C4 #6D28C4 #BB28C4
triadic
#6D28C4 #C46D28 #28C46D
tetradic
#6D28C4 #C42831 #7FC428 #28C4BB
square
#6D28C4 #C42831 #7FC428 #28C4BB
split-complementary
#6D28C4 #C4BB28 #31C428
monochromatic
#34135E #511E91 #6D28C4 #8C4EDB #AD81E5

Accessibility & contrast

On white

7.63
#6D28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6D28C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D28C4
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D28C4#FFFFFF#000000##FFFFFF
##6D28C41.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#555477
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6d28c4;
/* rgb */ color: rgb(109, 40, 196);
/* oklch */ color: oklch(47.1% 0.220 296.9);
Tailwind
colors: {
  custom: {
    50: '#9f6bd7',
    500: '#6d28c4',
    950: '#000000',
  },
}
SCSS
$custom: #6d28c4;
$custom-light: #9f6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d28c4",
  "rgb": {
    "r": 109,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 266.538,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47142,
    "c": 0.22012,
    "h": 296.9
  },
  "luminance": 0.08754
}

Semantic roles & 50–950 ramp

primary
#6D28C4
secondary
#A9CE7A
accent
#E93F9E
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #6D28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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