#6127AA#6127AA

#6127AA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.193 H 297.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#6127AA
RGBrgb(97, 39, 170)
HSLhsl(267, 63%, 41%)
HSVhsv(267, 77%, 67%)
CMYKcmyk(42.9%, 77.1%, 0%, 33.3%)
CIE-LABlab(31.57, 51.99, -59.63)
CIE-LCHlch(31.57, 79.11, 311.08°)
OKLaboklab(43.36% 0.0899 -0.1706)
OKLCHoklch(43.36% 0.193 297.8)
XYZxyz(12.9091, 6.8945, 38.6731)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127AA #70AA27
analogous
#272EAA #6127AA #A227AA
triadic
#6127AA #AA6127 #27AA61
tetradic
#6127AA #AA272E #70AA27 #27AAA2
square
#6127AA #AA272E #70AA27 #27AAA2
split-complementary
#6127AA #AAA227 #2EAA27
monochromatic
#281046 #451C78 #6127AA #7E3CD2 #9F6EDE

Accessibility & contrast

On white

8.83
#6127AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6127AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6127AA#FFFFFF#000000##FFFFFF
##6127AA1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#4E4A67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6127aa;
/* rgb */ color: rgb(97, 39, 170);
/* oklch */ color: oklch(43.4% 0.193 297.8);
Tailwind
colors: {
  custom: {
    50: '#9568c4',
    500: '#6127aa',
    950: '#000000',
  },
}
SCSS
$custom: #6127aa;
$custom-light: #9568c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6127aa",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 266.565,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43359,
    "c": 0.19287,
    "h": 297.8
  },
  "luminance": 0.06895
}

Semantic roles & 50–950 ramp

primary
#6127AA
secondary
#9CC469
accent
#E6429D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6127AA

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

Preview Lab → · Contrast checker → · Palette generator →

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