#6126AE#6126AE

#6126AE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.198 H 296.9°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#6126AE
RGBrgb(97, 38, 174)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 68%)
CMYKcmyk(44.3%, 78.2%, 0%, 31.8%)
CIE-LABlab(31.77, 53.43, -61.69)
CIE-LCHlch(31.77, 81.61, 310.89°)
OKLaboklab(43.61% 0.0896 -0.1767)
OKLCHoklch(43.61% 0.198 296.9)
XYZxyz(13.2608, 6.9833, 40.6854)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126AE #73AE26
analogous
#262FAE #6126AE #A526AE
triadic
#6126AE #AE6126 #26AE61
tetradic
#6126AE #AE262F #73AE26 #26AEA5
square
#6126AE #AE262F #73AE26 #26AEA5
split-complementary
#6126AE #AEA526 #2FAE26
monochromatic
#29104A #451B7C #6126AE #7F3DD5 #A06FE0

Accessibility & contrast

On white

8.76
#6126AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6126AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126AE
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126AE#FFFFFF#000000##FFFFFF
##6126AE1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#4C4B69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6126ae;
/* rgb */ color: rgb(97, 38, 174);
/* oklch */ color: oklch(43.6% 0.198 296.9);
Tailwind
colors: {
  custom: {
    50: '#9567c7',
    500: '#6126ae',
    950: '#000000',
  },
}
SCSS
$custom: #6126ae;
$custom-light: #9567c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6126ae",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 174
  },
  "hsl": {
    "h": 266.029,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43609,
    "c": 0.19811,
    "h": 296.9
  },
  "luminance": 0.06984
}

Semantic roles & 50–950 ramp

primary
#6126AE
secondary
#9EC66A
accent
#E7419F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6126AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6126AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva