#6126A2#6126A2

#6126A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.185 H 300.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#6126A2
RGBrgb(97, 38, 162)
HSLhsl(269, 62%, 39%)
HSVhsv(269, 77%, 64%)
CMYKcmyk(40.1%, 76.5%, 0%, 36.5%)
CIE-LABlab(30.73, 50.42, -56.18)
CIE-LCHlch(30.73, 75.48, 311.91°)
OKLaboklab(42.56% 0.0928 -0.1605)
OKLCHoklch(42.56% 0.185 300)
XYZxyz(12.1428, 6.5361, 34.7973)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126A2 #67A226
analogous
#2629A2 #6126A2 #9F26A2
triadic
#6126A2 #A26126 #26A261
tetradic
#6126A2 #A22629 #67A226 #26A29F
square
#6126A2 #A22629 #67A226 #26A29F
split-complementary
#6126A2 #A29F26 #29A226
monochromatic
#260F3F #431A70 #6126A2 #7F35D0 #9E67DB

Accessibility & contrast

On white

9.10
#6126A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6126A2
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126A2#FFFFFF#000000##FFFFFF
##6126A21.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#524663
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6126a2;
/* rgb */ color: rgb(97, 38, 162);
/* oklch */ color: oklch(42.6% 0.185 300.0);
Tailwind
colors: {
  custom: {
    50: '#9467be',
    500: '#6126a2',
    950: '#000000',
  },
}
SCSS
$custom: #6126a2;
$custom-light: #9467be;
$custom-dark: #000000;
JSON
{
  "hex": "#6126a2",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 268.548,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42558,
    "c": 0.18541,
    "h": 300
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#6126A2
secondary
#94C163
accent
#E54398
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6126A2

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

Preview Lab → · Contrast checker → · Palette generator →

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