#6127A4#6127A4

#6127A4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.186 H 299.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#6127A4
RGBrgb(97, 39, 164)
HSLhsl(268, 62%, 40%)
HSVhsv(268, 76%, 64%)
CMYKcmyk(40.9%, 76.2%, 0%, 35.7%)
CIE-LABlab(31.05, 50.48, -56.86)
CIE-LCHlch(31.05, 76.03, 311.60°)
OKLaboklab(42.84% 0.0914 -0.1625)
OKLCHoklch(42.84% 0.186 299.4)
XYZxyz(12.3544, 6.6726, 35.7518)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127A4 #6AA427
analogous
#272CA4 #6127A4 #9F27A4
triadic
#6127A4 #A46127 #27A461
tetradic
#6127A4 #A4272C #6AA427 #27A49F
square
#6127A4 #A4272C #6AA427 #27A49F
split-complementary
#6127A4 #A49F27 #2CA427
monochromatic
#270F41 #441B73 #6127A4 #7F38D0 #9F6ADC

Accessibility & contrast

On white

9.00
#6127A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6127A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6127A4#FFFFFF#000000##FFFFFF
##6127A41.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6127a4;
/* rgb */ color: rgb(97, 39, 164);
/* oklch */ color: oklch(42.8% 0.186 299.4);
Tailwind
colors: {
  custom: {
    50: '#9467c0',
    500: '#6127a4',
    950: '#000000',
  },
}
SCSS
$custom: #6127a4;
$custom-light: #9467c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6127a4",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 267.84,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42838,
    "c": 0.18647,
    "h": 299.4
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#6127A4
secondary
#97C265
accent
#E5439A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6127A4

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

Preview Lab → · Contrast checker → · Palette generator →

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