#6127A5#6127A5

#6127A5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.188 H 299.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#6127A5
RGBrgb(97, 39, 165)
HSLhsl(268, 62%, 40%)
HSVhsv(268, 76%, 65%)
CMYKcmyk(41.2%, 76.4%, 0%, 35.3%)
CIE-LABlab(31.13, 50.73, -57.32)
CIE-LCHlch(31.13, 76.55, 311.51°)
OKLaboklab(42.92% 0.0912 -0.1639)
OKLCHoklch(42.92% 0.188 299.1)
XYZxyz(12.4451, 6.7089, 36.2293)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6127A5 #6BA527
analogous
#272CA5 #6127A5 #A027A5
triadic
#6127A5 #A56127 #27A561
tetradic
#6127A5 #A5272C #6BA527 #27A5A0
square
#6127A5 #A5272C #6BA527 #27A5A0
split-complementary
#6127A5 #A5A027 #2CA527
monochromatic
#271042 #441B74 #6127A5 #7F39D0 #9F6ADC

Accessibility & contrast

On white

8.97
#6127A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6127A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6127A5#FFFFFF#000000##FFFFFF
##6127A51.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#514865
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6127a5;
/* rgb */ color: rgb(97, 39, 165);
/* oklch */ color: oklch(42.9% 0.188 299.1);
Tailwind
colors: {
  custom: {
    50: '#9467c1',
    500: '#6127a5',
    950: '#000000',
  },
}
SCSS
$custom: #6127a5;
$custom-light: #9467c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6127a5",
  "rgb": {
    "r": 97,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 267.619,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.18754,
    "h": 299.1
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#6127A5
secondary
#98C266
accent
#E5439A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6127A5

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

Preview Lab → · Contrast checker → · Palette generator →

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