#6F28B3#6F28B3

#6F28B3 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.203 H 301.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#6F28B3
RGBrgb(111, 40, 179)
HSLhsl(271, 63%, 43%)
HSVhsv(271, 78%, 70%)
CMYKcmyk(38%, 77.7%, 0%, 29.8%)
CIE-LABlab(34.30, 56.07, -60.47)
CIE-LCHlch(34.30, 82.47, 312.84°)
OKLaboklab(45.91% 0.1073 -0.1726)
OKLCHoklch(45.91% 0.203 301.9)
XYZxyz(15.4490, 8.1517, 43.3986)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F28B3 #6CB328
analogous
#2928B3 #6F28B3 #B328B2
triadic
#6F28B3 #B36F28 #28B36F
tetradic
#6F28B3 #B32928 #6CB328 #28B2B3
square
#6F28B3 #B32928 #6CB328 #28B2B3
split-complementary
#6F28B3 #B2B328 #28B329
monochromatic
#31124F #501D81 #6F28B3 #8E43D5 #AC75E0

Accessibility & contrast

On white

7.98
#6F28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6F28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F28B3
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F28B3#FFFFFF#000000##FFFFFF
##6F28B31.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#604D6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6f28b3;
/* rgb */ color: rgb(111, 40, 179);
/* oklch */ color: oklch(45.9% 0.203 301.9);
Tailwind
colors: {
  custom: {
    50: '#9f6acb',
    500: '#6f28b3',
    950: '#000000',
  },
}
SCSS
$custom: #6f28b3;
$custom-light: #9f6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f28b3",
  "rgb": {
    "r": 111,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 270.647,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45905,
    "c": 0.20325,
    "h": 301.9
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#6F28B3
secondary
#9AC86F
accent
#E64192
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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