#6F28B1#6F28B1

#6F28B1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.201 H 302.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#6F28B1
RGBrgb(111, 40, 177)
HSLhsl(271, 63%, 43%)
HSVhsv(271, 77%, 69%)
CMYKcmyk(37.3%, 77.4%, 0%, 30.6%)
CIE-LABlab(34.13, 55.60, -59.55)
CIE-LCHlch(34.13, 81.47, 313.04°)
OKLaboklab(45.74% 0.1078 -0.1699)
OKLCHoklch(45.74% 0.201 302.4)
XYZxyz(15.2482, 8.0714, 42.3410)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F28B1 #6AB128
analogous
#2A28B1 #6F28B1 #B128AF
triadic
#6F28B1 #B16F28 #28B16F
tetradic
#6F28B1 #B12A28 #6AB128 #28AFB1
square
#6F28B1 #B12A28 #6AB128 #28AFB1
split-complementary
#6F28B1 #AFB128 #28B12A
monochromatic
#30114D #501D7F #6F28B1 #8E42D4 #AC74E0

Accessibility & contrast

On white

8.03
#6F28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6F28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F28B1
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F28B1#FFFFFF#000000##FFFFFF
##6F28B11.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#614C6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6f28b1;
/* rgb */ color: rgb(111, 40, 177);
/* oklch */ color: oklch(45.7% 0.201 302.4);
Tailwind
colors: {
  custom: {
    50: '#9e6ac9',
    500: '#6f28b1',
    950: '#000000',
  },
}
SCSS
$custom: #6f28b1;
$custom-light: #9e6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#6f28b1",
  "rgb": {
    "r": 111,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 271.095,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45737,
    "c": 0.20124,
    "h": 302.4
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#6F28B1
secondary
#99C76E
accent
#E64291
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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