#6229C2#6229C2

#6229C2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.216 H 292.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#6229C2
RGBrgb(98, 41, 194)
HSLhsl(262, 65%, 46%)
HSVhsv(262, 79%, 76%)
CMYKcmyk(49.5%, 78.9%, 0%, 23.9%)
CIE-LABlab(34.14, 57.42, -69.64)
CIE-LCHlch(34.14, 90.26, 309.50°)
OKLaboklab(45.85% 0.0829 -0.2)
OKLCHoklch(45.85% 0.216 292.5)
XYZxyz(15.5648, 8.0770, 51.7674)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6229C2 #89C229
analogous
#293CC2 #6229C2 #AE29C2
triadic
#6229C2 #C26229 #29C262
tetradic
#6229C2 #C2293C #89C229 #29C2AE
square
#6229C2 #C2293C #89C229 #29C2AE
split-complementary
#6229C2 #C2AE29 #3CC229
monochromatic
#2F145D #481E8F #6229C2 #824EDA #A681E4

Accessibility & contrast

On white

8.03
#6229C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6229C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6229C2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6229C2#FFFFFF#000000##FFFFFF
##6229C21.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#425576
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6229c2;
/* rgb */ color: rgb(98, 41, 194);
/* oklch */ color: oklch(45.8% 0.216 292.5);
Tailwind
colors: {
  custom: {
    50: '#986ad6',
    500: '#6229c2',
    950: '#000000',
  },
}
SCSS
$custom: #6229c2;
$custom-light: #986ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#6229c2",
  "rgb": {
    "r": 98,
    "g": 41,
    "b": 194
  },
  "hsl": {
    "h": 262.353,
    "s": 65.106,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.21649,
    "h": 292.5
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#6229C2
secondary
#AECD7A
accent
#E840A9
background
#FAF6FD
surface
#F3EBFA
border
#CDC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6229C2

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

Preview Lab → · Contrast checker → · Palette generator →

#6229C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva