#6F28A6#6F28A6

#6F28A6 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.190 H 305.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#6F28A6
RGBrgb(111, 40, 166)
HSLhsl(274, 61%, 40%)
HSVhsv(274, 76%, 65%)
CMYKcmyk(33.1%, 75.9%, 0%, 34.9%)
CIE-LABlab(33.24, 53.02, -54.41)
CIE-LCHlch(33.24, 75.97, 314.26°)
OKLaboklab(44.84% 0.1104 -0.1548)
OKLCHoklch(44.84% 0.19 305.5)
XYZxyz(14.1957, 7.6504, 36.7978)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F28A6 #5FA628
analogous
#3028A6 #6F28A6 #A6289E
triadic
#6F28A6 #A66F28 #28A66F
tetradic
#6F28A6 #A63028 #5FA628 #289EA6
square
#6F28A6 #A63028 #5FA628 #289EA6
split-complementary
#6F28A6 #9EA628 #28A630
monochromatic
#2D1043 #4E1C75 #6F28A6 #8F3BD0 #AB6DDC

Accessibility & contrast

On white

8.30
#6F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6F28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F28A6
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F28A6#FFFFFF#000000##FFFFFF
##6F28A61.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#654765
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6f28a6;
/* rgb */ color: rgb(111, 40, 166);
/* oklch */ color: oklch(44.8% 0.190 305.5);
Tailwind
colors: {
  custom: {
    50: '#9e6ac1',
    500: '#6f28a6',
    950: '#000000',
  },
}
SCSS
$custom: #6f28a6;
$custom-light: #9e6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#6f28a6",
  "rgb": {
    "r": 111,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 273.81,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44838,
    "c": 0.19015,
    "h": 305.5
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#6F28A6
secondary
#8FC267
accent
#E4448A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6F28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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