#6A26A2#6A26A2

#6A26A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.187 H 304.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#6A26A2
RGBrgb(106, 38, 162)
HSLhsl(273, 62%, 39%)
HSVhsv(273, 77%, 64%)
CMYKcmyk(34.6%, 76.5%, 0%, 36.5%)
CIE-LABlab(31.94, 52.01, -54.14)
CIE-LCHlch(31.94, 75.07, 313.85°)
OKLaboklab(43.67% 0.106 -0.1542)
OKLCHoklch(43.67% 0.187 304.5)
XYZxyz(13.1571, 7.0591, 34.8448)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A26A2 #5EA226
analogous
#2C26A2 #6A26A2 #A2269C
triadic
#6A26A2 #A26A26 #26A26A
tetradic
#6A26A2 #A22C26 #5EA226 #269CA2
square
#6A26A2 #A22C26 #5EA226 #269CA2
split-complementary
#6A26A2 #9CA226 #26A22C
monochromatic
#290F3F #4A1A70 #6A26A2 #8A35D0 #A767DB

Accessibility & contrast

On white

8.71
#6A26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6A26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A26A2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A26A2#FFFFFF#000000##FFFFFF
##6A26A21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#5F4563
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a26a2;
/* rgb */ color: rgb(106, 38, 162);
/* oklch */ color: oklch(43.7% 0.187 304.5);
Tailwind
colors: {
  custom: {
    50: '#9a68be',
    500: '#6a26a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a26a2;
$custom-light: #9a68be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a26a2",
  "rgb": {
    "r": 106,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 272.903,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43674,
    "c": 0.18712,
    "h": 304.5
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#6A26A2
secondary
#8DC163
accent
#E5438C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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