#6128AE#6128AE

#6128AE is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.196 H 296.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6128AE
RGBrgb(97, 40, 174)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 77%, 68%)
CMYKcmyk(44.3%, 77%, 0%, 31.8%)
CIE-LABlab(32.07, 52.57, -61.21)
CIE-LCHlch(32.07, 80.68, 310.66°)
OKLaboklab(43.82% 0.088 -0.1753)
OKLCHoklch(43.82% 0.196 296.6)
XYZxyz(13.3265, 7.1147, 40.7073)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128AE #75AE28
analogous
#2832AE #6128AE #A428AE
triadic
#6128AE #AE6128 #28AE61
tetradic
#6128AE #AE2832 #75AE28 #28AEA4
square
#6128AE #AE2832 #75AE28 #28AEA4
split-complementary
#6128AE #AEA428 #32AE28
monochromatic
#2A114A #451D7C #6128AE #7F40D3 #A072DF

Accessibility & contrast

On white

8.67
#6128AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6128AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128AE
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128AE#FFFFFF#000000##FFFFFF
##6128AE1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#4C4C6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6128ae;
/* rgb */ color: rgb(97, 40, 174);
/* oklch */ color: oklch(43.8% 0.196 296.6);
Tailwind
colors: {
  custom: {
    50: '#9568c7',
    500: '#6128ae',
    950: '#000000',
  },
}
SCSS
$custom: #6128ae;
$custom-light: #9568c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6128ae",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 265.522,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43818,
    "c": 0.19612,
    "h": 296.6
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#6128AE
secondary
#A0C66C
accent
#E642A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6128AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6128AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva