#6D28B2#6D28B2

#6D28B2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.202 H 301.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#6D28B2
RGBrgb(109, 40, 178)
HSLhsl(270, 63%, 43%)
HSVhsv(270, 78%, 70%)
CMYKcmyk(38.8%, 77.5%, 0%, 30.2%)
CIE-LABlab(33.95, 55.51, -60.45)
CIE-LCHlch(33.95, 82.07, 312.56°)
OKLaboklab(45.58% 0.1046 -0.1727)
OKLCHoklch(45.58% 0.202 301.2)
XYZxyz(15.0994, 7.9830, 42.8562)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D28B2 #6DB228
analogous
#2828B2 #6D28B2 #B228B2
triadic
#6D28B2 #B26D28 #28B26D
tetradic
#6D28B2 #B22828 #6DB228 #28B2B2
square
#6D28B2 #B22828 #6DB228 #28B2B2
split-complementary
#6D28B2 #B2B228 #28B228
monochromatic
#30124E #4E1D80 #6D28B2 #8C43D5 #AA75E0

Accessibility & contrast

On white

8.09
#6D28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6D28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D28B2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D28B2#FFFFFF#000000##FFFFFF
##6D28B21.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#5E4D6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d28b2;
/* rgb */ color: rgb(109, 40, 178);
/* oklch */ color: oklch(45.6% 0.202 301.2);
Tailwind
colors: {
  custom: {
    50: '#9d6aca',
    500: '#6d28b2',
    950: '#000000',
  },
}
SCSS
$custom: #6d28b2;
$custom-light: #9d6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d28b2",
  "rgb": {
    "r": 109,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 270,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45577,
    "c": 0.20189,
    "h": 301.2
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#6D28B2
secondary
#9BC76F
accent
#E64194
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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