#6126C3#6126C3

#6126C3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.220 H 292.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6126C3
RGBrgb(97, 38, 195)
HSLhsl(263, 67%, 46%)
HSVhsv(263, 81%, 76%)
CMYKcmyk(50.3%, 80.5%, 0%, 23.5%)
CIE-LABlab(33.70, 58.75, -70.96)
CIE-LCHlch(33.70, 92.12, 309.63°)
OKLaboklab(45.54% 0.0831 -0.2038)
OKLCHoklch(45.54% 0.22 292.2)
XYZxyz(15.4704, 7.8672, 52.3226)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6126C3 #88C326
analogous
#2639C3 #6126C3 #AF26C3
triadic
#6126C3 #C36126 #26C361
tetradic
#6126C3 #C32639 #88C326 #26C3AF
square
#6126C3 #C32639 #88C326 #26C3AF
split-complementary
#6126C3 #C3AF26 #39C326
monochromatic
#2E125D #481C90 #6126C3 #814ADC #A57EE6

Accessibility & contrast

On white

8.16
#6126C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6126C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6126C3
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6126C3#FFFFFF#000000##FFFFFF
##6126C31.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#405476
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6126c3;
/* rgb */ color: rgb(97, 38, 195);
/* oklch */ color: oklch(45.5% 0.220 292.2);
Tailwind
colors: {
  custom: {
    50: '#9869d6',
    500: '#6126c3',
    950: '#000000',
  },
}
SCSS
$custom: #6126c3;
$custom-light: #9869d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6126c3",
  "rgb": {
    "r": 97,
    "g": 38,
    "b": 195
  },
  "hsl": {
    "h": 262.548,
    "s": 67.382,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45543,
    "c": 0.22012,
    "h": 292.2
  },
  "luminance": 0.07868
}

Semantic roles & 50–950 ramp

primary
#6126C3
secondary
#ADCE77
accent
#EA3EA9
background
#FAF6FD
surface
#F3EBFA
border
#CDC6D3
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #6126C3

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

Preview Lab → · Contrast checker → · Palette generator →

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