#6F28A7#6F28A7

#6F28A7 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.191 H 305.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6F28A7
RGBrgb(111, 40, 167)
HSLhsl(274, 61%, 41%)
HSVhsv(274, 76%, 65%)
CMYKcmyk(33.5%, 76%, 0%, 34.5%)
CIE-LABlab(33.32, 53.26, -54.88)
CIE-LCHlch(33.32, 76.47, 314.14°)
OKLaboklab(44.92% 0.1102 -0.1562)
OKLCHoklch(44.92% 0.191 305.2)
XYZxyz(14.2878, 7.6872, 37.2828)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F28A7 #60A728
analogous
#2F28A7 #6F28A7 #A728A0
triadic
#6F28A7 #A76F28 #28A76F
tetradic
#6F28A7 #A72F28 #60A728 #28A0A7
square
#6F28A7 #A72F28 #60A728 #28A0A7
split-complementary
#6F28A7 #A0A728 #28A72F
monochromatic
#2D1044 #4E1C76 #6F28A7 #8F3CD0 #AB6DDC

Accessibility & contrast

On white

8.28
#6F28A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6F28A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F28A7
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F28A7#FFFFFF#000000##FFFFFF
##6F28A71.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#654866
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6f28a7;
/* rgb */ color: rgb(111, 40, 167);
/* oklch */ color: oklch(44.9% 0.191 305.2);
Tailwind
colors: {
  custom: {
    50: '#9e6ac2',
    500: '#6f28a7',
    950: '#000000',
  },
}
SCSS
$custom: #6f28a7;
$custom-light: #9e6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f28a7",
  "rgb": {
    "r": 111,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 273.543,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44918,
    "c": 0.19115,
    "h": 305.2
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#6F28A7
secondary
#90C368
accent
#E4438A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6F28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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