#6A338E#6A338E

#6A338E is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.149 H 309.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#6A338E
RGBrgb(106, 51, 142)
HSLhsl(276, 47%, 38%)
HSVhsv(276, 64%, 56%)
CMYKcmyk(25.4%, 64.1%, 0%, 44.3%)
CIE-LABlab(32.67, 41.12, -40.77)
CIE-LCHlch(32.67, 57.91, 315.25°)
OKLaboklab(43.73% 0.0945 -0.115)
OKLCHoklch(43.73% 0.149 309.4)
XYZxyz(12.0092, 7.3850, 26.3788)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A338E #578E33
analogous
#3D338E #6A338E #8E3384
triadic
#6A338E #8E6A33 #338E6A
tetradic
#6A338E #8E3D33 #578E33 #33848E
square
#6A338E #8E3D33 #578E33 #33848E
split-complementary
#6A338E #848E33 #338E3D
monochromatic
#271334 #482361 #6A338E #8C43BB #A770CC

Accessibility & contrast

On white

8.48
#6A338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6A338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A338E
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A338E#FFFFFF#000000##FFFFFF
##6A338E1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A91
Deuteranopia (green-blind)
#264E8C
Tritanopia (blue-blind)
#65455B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6a338e;
/* rgb */ color: rgb(106, 51, 142);
/* oklch */ color: oklch(43.7% 0.149 309.4);
Tailwind
colors: {
  custom: {
    50: '#986eb0',
    500: '#6a338e',
    950: '#000000',
  },
}
SCSS
$custom: #6a338e;
$custom-light: #986eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a338e",
  "rgb": {
    "r": 106,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 276.264,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4373,
    "c": 0.14883,
    "h": 309.4
  },
  "luminance": 0.07385
}

Semantic roles & 50–950 ramp

primary
#6A338E
secondary
#87B469
accent
#D75186
background
#F9F6FA
surface
#F2ECF5
border
#CCC7CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6A338E

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

Preview Lab → · Contrast checker → · Palette generator →

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