#6127AE#6127AE

#6127AE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.197 H 296.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#6127AE
RGBrgb(97, 39, 174)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 78%, 68%)
CMYKcmyk(44.3%, 77.6%, 0%, 31.8%)
CIE-LABlab(31.92, 53.00, -61.45)
CIE-LCHlch(31.92, 81.15, 310.78°)
OKLaboklab(43.71% 0.0888 -0.176)
OKLCHoklch(43.71% 0.197 296.8)
XYZxyz(13.2932, 7.0481, 40.6962)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127AE #74AE27
analogous
#2731AE #6127AE #A527AE
triadic
#6127AE #AE6127 #27AE61
tetradic
#6127AE #AE2731 #74AE27 #27AEA5
square
#6127AE #AE2731 #74AE27 #27AEA5
split-complementary
#6127AE #AEA527 #31AE27
monochromatic
#29114A #451C7C #6127AE #7F3ED4 #A070DF

Accessibility & contrast

On white

8.72
#6127AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6127AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6127AE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6127AE#FFFFFF#000000##FFFFFF
##6127AE1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#4C4C6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6127ae;
/* rgb */ color: rgb(97, 39, 174);
/* oklch */ color: oklch(43.7% 0.197 296.8);
Tailwind
colors: {
  custom: {
    50: '#9568c7',
    500: '#6127ae',
    950: '#000000',
  },
}
SCSS
$custom: #6127ae;
$custom-light: #9568c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6127ae",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 265.778,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43712,
    "c": 0.19712,
    "h": 296.8
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#6127AE
secondary
#9FC66B
accent
#E641A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6127AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6127AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva