#6126AD#6126AD

#6126AD is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.197 H 297.1°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6126AD
RGBrgb(97, 38, 173)
HSLhsl(266, 64%, 41%)
HSVhsv(266, 78%, 68%)
CMYKcmyk(43.9%, 78%, 0%, 32.2%)
CIE-LABlab(31.68, 53.17, -61.24)
CIE-LCHlch(31.68, 81.10, 310.97°)
OKLaboklab(43.52% 0.0899 -0.1754)
OKLCHoklch(43.52% 0.197 297.1)
XYZxyz(13.1637, 6.9445, 40.1739)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126AD #72AD26
analogous
#262FAD #6126AD #A526AD
triadic
#6126AD #AD6126 #26AD61
tetradic
#6126AD #AD262F #72AD26 #26ADA5
square
#6126AD #AD262F #72AD26 #26ADA5
split-complementary
#6126AD #ADA526 #2FAD26
monochromatic
#291049 #451B7B #6126AD #7F3CD4 #A06EDF

Accessibility & contrast

On white

8.79
#6126AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6126AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126AD
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126AD#FFFFFF#000000##FFFFFF
##6126AD1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#4D4B69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6126ad;
/* rgb */ color: rgb(97, 38, 173);
/* oklch */ color: oklch(43.5% 0.197 297.1);
Tailwind
colors: {
  custom: {
    50: '#9567c6',
    500: '#6126ad',
    950: '#000000',
  },
}
SCSS
$custom: #6126ad;
$custom-light: #9567c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6126ad",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 266.222,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4352,
    "c": 0.19706,
    "h": 297.1
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

primary
#6126AD
secondary
#9DC669
accent
#E7419E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6126AD

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

Preview Lab → · Contrast checker → · Palette generator →

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