#6128B1#6128B1

#6128B1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.1% C 0.199 H 295.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#6128B1
RGBrgb(97, 40, 177)
HSLhsl(265, 63%, 43%)
HSVhsv(265, 77%, 69%)
CMYKcmyk(45.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(32.33, 53.34, -62.56)
CIE-LCHlch(32.33, 82.21, 310.45°)
OKLaboklab(44.08% 0.0871 -0.1793)
OKLCHoklch(44.08% 0.199 295.9)
XYZxyz(13.6222, 7.2330, 42.2648)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128B1 #78B128
analogous
#2833B1 #6128B1 #A628B1
triadic
#6128B1 #B16128 #28B161
tetradic
#6128B1 #B12833 #78B128 #28B1A6
square
#6128B1 #B12833 #78B128 #28B1A6
split-complementary
#6128B1 #B1A628 #33B128
monochromatic
#2A114D #461D7F #6128B1 #7F42D4 #A174E0

Accessibility & contrast

On white

8.58
#6128B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6128B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128B1
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128B1#FFFFFF#000000##FFFFFF
##6128B11.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#4B4E6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6128b1;
/* rgb */ color: rgb(97, 40, 177);
/* oklch */ color: oklch(44.1% 0.199 295.9);
Tailwind
colors: {
  custom: {
    50: '#9669c9',
    500: '#6128b1',
    950: '#000000',
  },
}
SCSS
$custom: #6128b1;
$custom-light: #9669c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6128b1",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 264.964,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44084,
    "c": 0.19932,
    "h": 295.9
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#6128B1
secondary
#A2C76E
accent
#E642A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6128B1

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

Preview Lab → · Contrast checker → · Palette generator →

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