#6D28AF#6D28AF

#6D28AF is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.199 H 302.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6D28AF
RGBrgb(109, 40, 175)
HSLhsl(271, 63%, 42%)
HSVhsv(271, 77%, 69%)
CMYKcmyk(37.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(33.70, 54.79, -59.07)
CIE-LCHlch(33.70, 80.57, 312.85°)
OKLaboklab(45.33% 0.1054 -0.1686)
OKLCHoklch(45.33% 0.199 302)
XYZxyz(14.8015, 7.8639, 41.2872)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D28AF #6AAF28
analogous
#2A28AF #6D28AF #AF28AE
triadic
#6D28AF #AF6D28 #28AF6D
tetradic
#6D28AF #AF2A28 #6AAF28 #28AEAF
square
#6D28AF #AF2A28 #6AAF28 #28AEAF
split-complementary
#6D28AF #AEAF28 #28AF2A
monochromatic
#2F114B #4E1D7D #6D28AF #8C41D4 #AA73DF

Accessibility & contrast

On white

8.16
#6D28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6D28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D28AF
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D28AF#FFFFFF#000000##FFFFFF
##6D28AF1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#5F4B6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6d28af;
/* rgb */ color: rgb(109, 40, 175);
/* oklch */ color: oklch(45.3% 0.199 302.0);
Tailwind
colors: {
  custom: {
    50: '#9d6ac8',
    500: '#6d28af',
    950: '#000000',
  },
}
SCSS
$custom: #6d28af;
$custom-light: #9d6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d28af",
  "rgb": {
    "r": 109,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 270.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45325,
    "c": 0.19885,
    "h": 302
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#6D28AF
secondary
#98C66D
accent
#E64292
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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