#6128AF#6128AF

#6128AF is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.197 H 296.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6128AF
RGBrgb(97, 40, 175)
HSLhsl(265, 63%, 42%)
HSVhsv(265, 77%, 69%)
CMYKcmyk(44.6%, 77.1%, 0%, 31.4%)
CIE-LABlab(32.15, 52.83, -61.66)
CIE-LCHlch(32.15, 81.19, 310.59°)
OKLaboklab(43.91% 0.0877 -0.1766)
OKLCHoklch(43.91% 0.197 296.4)
XYZxyz(13.4244, 7.1538, 41.2227)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128AF #76AF28
analogous
#2833AF #6128AF #A528AF
triadic
#6128AF #AF6128 #28AF61
tetradic
#6128AF #AF2833 #76AF28 #28AFA5
square
#6128AF #AF2833 #76AF28 #28AFA5
split-complementary
#6128AF #AFA528 #33AF28
monochromatic
#2A114B #451D7D #6128AF #7F41D4 #A073DF

Accessibility & contrast

On white

8.64
#6128AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6128AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128AF
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128AF#FFFFFF#000000##FFFFFF
##6128AF1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#4C4D6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6128af;
/* rgb */ color: rgb(97, 40, 175);
/* oklch */ color: oklch(43.9% 0.197 296.4);
Tailwind
colors: {
  custom: {
    50: '#9568c8',
    500: '#6128af',
    950: '#000000',
  },
}
SCSS
$custom: #6128af;
$custom-light: #9568c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6128af",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 265.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43906,
    "c": 0.19719,
    "h": 296.4
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#6128AF
secondary
#A0C66D
accent
#E642A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6128AF

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

Preview Lab → · Contrast checker → · Palette generator →

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