#6226BD#6226BD

#6226BD is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.214 H 293.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#6226BD
RGBrgb(98, 38, 189)
HSLhsl(264, 67%, 45%)
HSVhsv(264, 80%, 74%)
CMYKcmyk(48.1%, 79.9%, 0%, 25.9%)
CIE-LABlab(33.26, 57.36, -68.16)
CIE-LCHlch(33.26, 89.08, 310.08°)
OKLaboklab(45.09% 0.0865 -0.1956)
OKLCHoklch(45.09% 0.214 293.9)
XYZxyz(14.9129, 7.6565, 48.8264)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226BD #81BD26
analogous
#2636BD #6226BD #AE26BD
triadic
#6226BD #BD6226 #26BD62
tetradic
#6226BD #BD2636 #81BD26 #26BDAE
square
#6226BD #BD2636 #81BD26 #26BDAE
split-complementary
#6226BD #BDAE26 #36BD26
monochromatic
#2D1257 #481C8A #6226BD #8146DA #A479E4

Accessibility & contrast

On white

8.30
#6226BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6226BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226BD
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226BD#FFFFFF#000000##FFFFFF
##6226BD1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#465272
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6226bd;
/* rgb */ color: rgb(98, 38, 189);
/* oklch */ color: oklch(45.1% 0.214 293.9);
Tailwind
colors: {
  custom: {
    50: '#9868d2',
    500: '#6226bd',
    950: '#000000',
  },
}
SCSS
$custom: #6226bd;
$custom-light: #9868d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6226bd",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 263.841,
    "s": 66.52,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.2139,
    "h": 293.9
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#6226BD
secondary
#A9CC73
accent
#E93EA5
background
#FAF6FD
surface
#F3EBFA
border
#CDC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6226BD

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

Preview Lab → · Contrast checker → · Palette generator →

#6226BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva