#6127A6#6127A6

#6127A6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.189 H 298.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#6127A6
RGBrgb(97, 39, 166)
HSLhsl(267, 62%, 40%)
HSVhsv(267, 77%, 65%)
CMYKcmyk(41.6%, 76.5%, 0%, 34.9%)
CIE-LABlab(31.22, 50.98, -57.79)
CIE-LCHlch(31.22, 77.06, 311.42°)
OKLaboklab(43.01% 0.0909 -0.1652)
OKLCHoklch(43.01% 0.189 298.8)
XYZxyz(12.5365, 6.7454, 36.7105)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127A6 #6CA627
analogous
#272CA6 #6127A6 #A127A6
triadic
#6127A6 #A66127 #27A661
tetradic
#6127A6 #A6272C #6CA627 #27A6A1
square
#6127A6 #A6272C #6CA627 #27A6A1
split-complementary
#6127A6 #A6A127 #2CA627
monochromatic
#271043 #441B74 #6127A6 #7F3AD1 #9F6BDC

Accessibility & contrast

On white

8.94
#6127A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6127A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6127A6#FFFFFF#000000##FFFFFF
##6127A61.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#504965
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6127a6;
/* rgb */ color: rgb(97, 39, 166);
/* oklch */ color: oklch(43.0% 0.189 298.8);
Tailwind
colors: {
  custom: {
    50: '#9468c1',
    500: '#6127a6',
    950: '#000000',
  },
}
SCSS
$custom: #6127a6;
$custom-light: #9468c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6127a6",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 267.402,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4301,
    "c": 0.18861,
    "h": 298.8
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

primary
#6127A6
secondary
#98C366
accent
#E5439B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6127A6

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

Preview Lab → · Contrast checker → · Palette generator →

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