#6D42A7#6D42A7

#6D42A7 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.0% C 0.157 H 300.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6D42A7
RGBrgb(109, 66, 167)
HSLhsl(266, 43%, 46%)
HSVhsv(266, 60%, 65%)
CMYKcmyk(34.7%, 60.5%, 0%, 34.5%)
CIE-LABlab(37.73, 39.97, -47.76)
CIE-LCHlch(37.73, 62.28, 309.93°)
OKLaboklab(48.02% 0.0788 -0.1355)
OKLCHoklch(48.02% 0.157 300.2)
XYZxyz(15.2283, 9.9375, 37.6676)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42A7 #7CA742
analogous
#4249A7 #6D42A7 #A042A7
triadic
#6D42A7 #A76D42 #42A76D
tetradic
#6D42A7 #A74249 #7CA742 #42A7A0
square
#6D42A7 #A74249 #7CA742 #42A7A0
split-complementary
#6D42A7 #A7A042 #49A742
monochromatic
#341F4F #50317B #6D42A7 #8C64C2 #AD90D3

Accessibility & contrast

On white

7.03
#6D42A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6D42A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D42A7
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42A7#FFFFFF#000000##FFFFFF
##6D42A71.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0558AA
Deuteranopia (green-blind)
#2158A5
Tritanopia (blue-blind)
#61576E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6d42a7;
/* rgb */ color: rgb(109, 66, 167);
/* oklch */ color: oklch(48.0% 0.157 300.2);
Tailwind
colors: {
  custom: {
    50: '#9b78c2',
    500: '#6d42a7',
    950: '#000000',
  },
}
SCSS
$custom: #6d42a7;
$custom-light: #9b78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42a7",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 265.545,
    "s": 43.348,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48024,
    "c": 0.15671,
    "h": 300.2
  },
  "luminance": 0.09938
}

Semantic roles & 50–950 ramp

primary
#6D42A7
secondary
#A7BE86
accent
#D3559D
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6D42A7

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

Preview Lab → · Contrast checker → · Palette generator →

#6D42A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva