#6127AD#6127AD

#6127AD is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.196 H 297.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#6127AD
RGBrgb(97, 39, 173)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 77%, 68%)
CMYKcmyk(43.9%, 77.5%, 0%, 32.2%)
CIE-LABlab(31.83, 52.75, -61.00)
CIE-LCHlch(31.83, 80.64, 310.85°)
OKLaboklab(43.62% 0.0891 -0.1747)
OKLCHoklch(43.62% 0.196 297)
XYZxyz(13.1961, 7.0093, 40.1847)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127AD #73AD27
analogous
#2730AD #6127AD #A427AD
triadic
#6127AD #AD6127 #27AD61
tetradic
#6127AD #AD2730 #73AD27 #27ADA4
square
#6127AD #AD2730 #73AD27 #27ADA4
split-complementary
#6127AD #ADA427 #30AD27
monochromatic
#291049 #451C7B #6127AD #7F3ED3 #A070DF

Accessibility & contrast

On white

8.74
#6127AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6127AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6127AD#FFFFFF#000000##FFFFFF
##6127AD1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#4D4B69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6127ad;
/* rgb */ color: rgb(97, 39, 173);
/* oklch */ color: oklch(43.6% 0.196 297.0);
Tailwind
colors: {
  custom: {
    50: '#9568c6',
    500: '#6127ad',
    950: '#000000',
  },
}
SCSS
$custom: #6127ad;
$custom-light: #9568c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6127ad",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 265.97,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43624,
    "c": 0.19606,
    "h": 297
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#6127AD
secondary
#9EC66A
accent
#E6429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6127AD

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

Preview Lab → · Contrast checker → · Palette generator →

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