#6128A5#6128A5

#6128A5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.186 H 299.0°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#6128A5
RGBrgb(97, 40, 165)
HSLhsl(267, 61%, 40%)
HSVhsv(267, 76%, 65%)
CMYKcmyk(41.2%, 75.8%, 0%, 35.3%)
CIE-LABlab(31.29, 50.29, -57.07)
CIE-LCHlch(31.29, 76.06, 311.38°)
OKLaboklab(43.03% 0.0903 -0.1631)
OKLCHoklch(43.03% 0.186 299)
XYZxyz(12.4784, 6.7754, 36.2404)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128A5 #6CA528
analogous
#282DA5 #6128A5 #A028A5
triadic
#6128A5 #A56128 #28A561
tetradic
#6128A5 #A5282D #6CA528 #28A5A0
square
#6128A5 #A5282D #6CA528 #28A5A0
split-complementary
#6128A5 #A5A028 #2DA528
monochromatic
#271042 #441C74 #6128A5 #7F3BCF #9F6CDB

Accessibility & contrast

On white

8.92
#6128A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6128A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128A5
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128A5#FFFFFF#000000##FFFFFF
##6128A51.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#504965
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6128a5;
/* rgb */ color: rgb(97, 40, 165);
/* oklch */ color: oklch(43.0% 0.186 299.0);
Tailwind
colors: {
  custom: {
    50: '#9468c1',
    500: '#6128a5',
    950: '#000000',
  },
}
SCSS
$custom: #6128a5;
$custom-light: #9468c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6128a5",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 267.36,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43033,
    "c": 0.18646,
    "h": 299
  },
  "luminance": 0.06776
}

Semantic roles & 50–950 ramp

primary
#6128A5
secondary
#98C267
accent
#E4449B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6128A5

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

Preview Lab → · Contrast checker → · Palette generator →

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