#6126B1#6126B1

#6126B1 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.9% C 0.201 H 296.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#6126B1
RGBrgb(97, 38, 177)
HSLhsl(265, 65%, 42%)
HSVhsv(265, 79%, 69%)
CMYKcmyk(45.2%, 78.5%, 0%, 30.6%)
CIE-LABlab(32.04, 54.18, -63.05)
CIE-LCHlch(32.04, 83.13, 310.68°)
OKLaboklab(43.88% 0.0887 -0.1807)
OKLCHoklch(43.88% 0.201 296.2)
XYZxyz(13.5566, 7.1016, 42.2429)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126B1 #76B126
analogous
#2630B1 #6126B1 #A726B1
triadic
#6126B1 #B16126 #26B161
tetradic
#6126B1 #B12630 #76B126 #26B1A7
square
#6126B1 #B12630 #76B126 #26B1A7
split-complementary
#6126B1 #B1A726 #30B126
monochromatic
#2A104C #451B7F #6126B1 #7F3FD6 #A071E0

Accessibility & contrast

On white

8.68
#6126B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6126B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126B1
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126B1#FFFFFF#000000##FFFFFF
##6126B11.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#4B4D6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6126b1;
/* rgb */ color: rgb(97, 38, 177);
/* oklch */ color: oklch(43.9% 0.201 296.2);
Tailwind
colors: {
  custom: {
    50: '#9668c9',
    500: '#6126b1',
    950: '#000000',
  },
}
SCSS
$custom: #6126b1;
$custom-light: #9668c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6126b1",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 265.468,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43879,
    "c": 0.20128,
    "h": 296.2
  },
  "luminance": 0.07102
}

Semantic roles & 50–950 ramp

primary
#6126B1
secondary
#A0C76B
accent
#E840A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6126B1

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

Preview Lab → · Contrast checker → · Palette generator →

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