#6F28B2#6F28B2

#6F28B2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.202 H 302.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#6F28B2
RGBrgb(111, 40, 178)
HSLhsl(271, 63%, 43%)
HSVhsv(271, 78%, 70%)
CMYKcmyk(37.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(34.21, 55.84, -60.01)
CIE-LCHlch(34.21, 81.97, 312.94°)
OKLaboklab(45.82% 0.1075 -0.1713)
OKLCHoklch(45.82% 0.202 302.1)
XYZxyz(15.3483, 8.1114, 42.8679)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F28B2 #6BB228
analogous
#2A28B2 #6F28B2 #B228B0
triadic
#6F28B2 #B26F28 #28B26F
tetradic
#6F28B2 #B22A28 #6BB228 #28B0B2
square
#6F28B2 #B22A28 #6BB228 #28B0B2
split-complementary
#6F28B2 #B0B228 #28B22A
monochromatic
#31124E #501D80 #6F28B2 #8E43D5 #AC75E0

Accessibility & contrast

On white

8.01
#6F28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6F28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F28B2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F28B2#FFFFFF#000000##FFFFFF
##6F28B21.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f28b2;
/* rgb */ color: rgb(111, 40, 178);
/* oklch */ color: oklch(45.8% 0.202 302.1);
Tailwind
colors: {
  custom: {
    50: '#9f6aca',
    500: '#6f28b2',
    950: '#000000',
  },
}
SCSS
$custom: #6f28b2;
$custom-light: #9f6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#6f28b2",
  "rgb": {
    "r": 111,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 270.87,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45821,
    "c": 0.20224,
    "h": 302.1
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#6F28B2
secondary
#9AC76F
accent
#E64192
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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