#6126A5#6126A5

#6126A5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.189 H 299.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#6126A5
RGBrgb(97, 38, 165)
HSLhsl(268, 63%, 40%)
HSVhsv(268, 77%, 65%)
CMYKcmyk(41.2%, 77%, 0%, 35.3%)
CIE-LABlab(30.98, 51.16, -57.57)
CIE-LCHlch(30.98, 77.02, 311.63°)
OKLaboklab(42.82% 0.0921 -0.1646)
OKLCHoklch(42.82% 0.189 299.2)
XYZxyz(12.4127, 6.6441, 36.2185)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126A5 #6AA526
analogous
#262AA5 #6126A5 #A126A5
triadic
#6126A5 #A56126 #26A561
tetradic
#6126A5 #A5262A #6AA526 #26A5A1
square
#6126A5 #A5262A #6AA526 #26A5A1
split-complementary
#6126A5 #A5A126 #2AA526
monochromatic
#270F42 #441B73 #6126A5 #7F37D1 #9F69DC

Accessibility & contrast

On white

9.02
#6126A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6126A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126A5
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126A5#FFFFFF#000000##FFFFFF
##6126A51.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#514864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6126a5;
/* rgb */ color: rgb(97, 38, 165);
/* oklch */ color: oklch(42.8% 0.189 299.2);
Tailwind
colors: {
  custom: {
    50: '#9467c1',
    500: '#6126a5',
    950: '#000000',
  },
}
SCSS
$custom: #6126a5;
$custom-light: #9467c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6126a5",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 267.874,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42817,
    "c": 0.1886,
    "h": 299.2
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

primary
#6126A5
secondary
#97C364
accent
#E6429A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6126A5

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

Preview Lab → · Contrast checker → · Palette generator →

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