#6F28A8#6F28A8

#6F28A8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.192 H 304.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#6F28A8
RGBrgb(111, 40, 168)
HSLhsl(273, 62%, 41%)
HSVhsv(273, 76%, 66%)
CMYKcmyk(33.9%, 76.2%, 0%, 34.1%)
CIE-LABlab(33.40, 53.49, -55.35)
CIE-LCHlch(33.40, 76.97, 314.02°)
OKLaboklab(45% 0.11 -0.1576)
OKLCHoklch(45% 0.192 304.9)
XYZxyz(14.3806, 7.7243, 37.7715)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F28A8 #61A828
analogous
#2F28A8 #6F28A8 #A828A1
triadic
#6F28A8 #A86F28 #28A86F
tetradic
#6F28A8 #A82F28 #61A828 #28A1A8
square
#6F28A8 #A82F28 #61A828 #28A1A8
split-complementary
#6F28A8 #A1A828 #28A82F
monochromatic
#2E1045 #4E1C77 #6F28A8 #8F3DD1 #AB6EDC

Accessibility & contrast

On white

8.25
#6F28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6F28A8
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F28A8#FFFFFF#000000##FFFFFF
##6F28A81.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#644867
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6f28a8;
/* rgb */ color: rgb(111, 40, 168);
/* oklch */ color: oklch(45.0% 0.192 304.9);
Tailwind
colors: {
  custom: {
    50: '#9e6ac3',
    500: '#6f28a8',
    950: '#000000',
  },
}
SCSS
$custom: #6f28a8;
$custom-light: #9e6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f28a8",
  "rgb": {
    "r": 111,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 273.281,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44999,
    "c": 0.19216,
    "h": 304.9
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#6F28A8
secondary
#91C369
accent
#E5438B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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