#6126A4#6126A4

#6126A4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.188 H 299.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#6126A4
RGBrgb(97, 38, 164)
HSLhsl(268, 62%, 40%)
HSVhsv(268, 77%, 64%)
CMYKcmyk(40.9%, 76.8%, 0%, 35.7%)
CIE-LABlab(30.90, 50.91, -57.11)
CIE-LCHlch(30.90, 76.51, 311.72°)
OKLaboklab(42.73% 0.0923 -0.1632)
OKLCHoklch(42.73% 0.188 299.5)
XYZxyz(12.3220, 6.6078, 35.7410)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126A4 #69A426
analogous
#262AA4 #6126A4 #A026A4
triadic
#6126A4 #A46126 #26A461
tetradic
#6126A4 #A4262A #69A426 #26A4A0
square
#6126A4 #A4262A #69A426 #26A4A0
split-complementary
#6126A4 #A4A026 #2AA426
monochromatic
#260F41 #441A72 #6126A4 #7F37D1 #9F68DC

Accessibility & contrast

On white

9.05
#6126A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6126A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126A4
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126A4#FFFFFF#000000##FFFFFF
##6126A41.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#514764
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6126a4;
/* rgb */ color: rgb(97, 38, 164);
/* oklch */ color: oklch(42.7% 0.188 299.5);
Tailwind
colors: {
  custom: {
    50: '#9467c0',
    500: '#6126a4',
    950: '#000000',
  },
}
SCSS
$custom: #6126a4;
$custom-light: #9467c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6126a4",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 268.095,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.18754,
    "h": 299.5
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#6126A4
secondary
#96C264
accent
#E54299
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6126A4

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

Preview Lab → · Contrast checker → · Palette generator →

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