#6126AF#6126AF

#6126AF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.199 H 296.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#6126AF
RGBrgb(97, 38, 175)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 69%)
CMYKcmyk(44.6%, 78.3%, 0%, 31.4%)
CIE-LABlab(31.86, 53.68, -62.15)
CIE-LCHlch(31.86, 82.12, 310.82°)
OKLaboklab(43.7% 0.0893 -0.178)
OKLCHoklch(43.7% 0.199 296.6)
XYZxyz(13.3587, 7.0225, 41.2008)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126AF #74AF26
analogous
#2630AF #6126AF #A526AF
triadic
#6126AF #AF6126 #26AF61
tetradic
#6126AF #AF2630 #74AF26 #26AFA5
square
#6126AF #AF2630 #74AF26 #26AFA5
split-complementary
#6126AF #AFA526 #30AF26
monochromatic
#29104A #451B7D #6126AF #7F3DD5 #A070E0

Accessibility & contrast

On white

8.73
#6126AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6126AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126AF
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126AF#FFFFFF#000000##FFFFFF
##6126AF1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#4C4C6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6126af;
/* rgb */ color: rgb(97, 38, 175);
/* oklch */ color: oklch(43.7% 0.199 296.6);
Tailwind
colors: {
  custom: {
    50: '#9667c8',
    500: '#6126af',
    950: '#000000',
  },
}
SCSS
$custom: #6126af;
$custom-light: #9667c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6126af",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 265.839,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43699,
    "c": 0.19917,
    "h": 296.6
  },
  "luminance": 0.07023
}

Semantic roles & 50–950 ramp

primary
#6126AF
secondary
#9FC76A
accent
#E7409F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6126AF

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

Preview Lab → · Contrast checker → · Palette generator →

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