#6A228F#6A228F

#6A228F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.173 H 311.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#6A228F
RGBrgb(106, 34, 143)
HSLhsl(280, 62%, 35%)
HSVhsv(280, 76%, 56%)
CMYKcmyk(25.9%, 76.2%, 0%, 43.9%)
CIE-LABlab(29.89, 49.30, -45.86)
CIE-LCHlch(29.89, 67.33, 317.07°)
OKLaboklab(41.77% 0.1136 -0.1298)
OKLCHoklch(41.77% 0.173 311.2)
XYZxyz(11.4729, 6.1917, 26.5720)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A228F #478F22
analogous
#34228F #6A228F #8F227E
triadic
#6A228F #8F6A22 #228F6A
tetradic
#6A228F #8F3422 #478F22 #227E8F
square
#6A228F #8F3422 #478F22 #227E8F
split-complementary
#6A228F #7E8F22 #228F34
monochromatic
#210A2C #45165E #6A228F #8F2EC0 #AB55D7

Accessibility & contrast

On white

9.38
#6A228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6A228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A228F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A228F#FFFFFF#000000##FFFFFF
##6A228F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#0D488D
Tritanopia (blue-blind)
#653B57
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a228f;
/* rgb */ color: rgb(106, 34, 143);
/* oklch */ color: oklch(41.8% 0.173 311.2);
Tailwind
colors: {
  custom: {
    50: '#9965b0',
    500: '#6a228f',
    950: '#000000',
  },
}
SCSS
$custom: #6a228f;
$custom-light: #9965b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a228f",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 279.633,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41765,
    "c": 0.17254,
    "h": 311.2
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#6A228F
secondary
#76BA52
accent
#E5437A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A228F

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

Preview Lab → · Contrast checker → · Palette generator →

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