#6126A3#6126A3

#6126A3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.186 H 299.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#6126A3
RGBrgb(97, 38, 163)
HSLhsl(268, 62%, 39%)
HSVhsv(268, 77%, 64%)
CMYKcmyk(40.5%, 76.7%, 0%, 36.1%)
CIE-LABlab(30.81, 50.67, -56.64)
CIE-LCHlch(30.81, 76.00, 311.81°)
OKLaboklab(42.64% 0.0926 -0.1619)
OKLCHoklch(42.64% 0.186 299.8)
XYZxyz(12.2321, 6.5718, 35.2673)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126A3 #68A326
analogous
#262AA3 #6126A3 #A026A3
triadic
#6126A3 #A36126 #26A361
tetradic
#6126A3 #A3262A #68A326 #26A3A0
square
#6126A3 #A3262A #68A326 #26A3A0
split-complementary
#6126A3 #A3A026 #2AA326
monochromatic
#260F40 #431A71 #6126A3 #7F36D0 #9E68DC

Accessibility & contrast

On white

9.07
#6126A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6126A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126A3
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126A3#FFFFFF#000000##FFFFFF
##6126A31.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#514763
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6126a3;
/* rgb */ color: rgb(97, 38, 163);
/* oklch */ color: oklch(42.6% 0.186 299.8);
Tailwind
colors: {
  custom: {
    50: '#9467bf',
    500: '#6126a3',
    950: '#000000',
  },
}
SCSS
$custom: #6126a3;
$custom-light: #9467bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6126a3",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 268.32,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.18648,
    "h": 299.8
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#6126A3
secondary
#95C263
accent
#E54398
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6126A3

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

Preview Lab → · Contrast checker → · Palette generator →

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