#6225B2#6225B2

#6225B2 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.0% C 0.203 H 296.5°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#6225B2
RGBrgb(98, 37, 178)
HSLhsl(266, 66%, 42%)
HSVhsv(266, 79%, 70%)
CMYKcmyk(44.9%, 79.2%, 0%, 30.2%)
CIE-LABlab(32.11, 55.00, -63.52)
CIE-LCHlch(32.11, 84.02, 310.89°)
OKLaboklab(43.98% 0.0907 -0.182)
OKLCHoklch(43.98% 0.203 296.5)
XYZxyz(13.7323, 7.1338, 42.7643)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6225B2 #75B225
analogous
#252FB2 #6225B2 #A825B2
triadic
#6225B2 #B26225 #25B262
tetradic
#6225B2 #B2252F #75B225 #25B2A8
square
#6225B2 #B2252F #75B225 #25B2A8
split-complementary
#6225B2 #B2A825 #2FB225
monochromatic
#2A104D #461A7F #6225B2 #803DD7 #A170E1

Accessibility & contrast

On white

8.65
#6225B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6225B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6225B2
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6225B2#FFFFFF#000000##FFFFFF
##6225B21.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#4C4D6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6225b2;
/* rgb */ color: rgb(98, 37, 178);
/* oklch */ color: oklch(44.0% 0.203 296.5);
Tailwind
colors: {
  custom: {
    50: '#9767ca',
    500: '#6225b2',
    950: '#000000',
  },
}
SCSS
$custom: #6225b2;
$custom-light: #9767ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6225b2",
  "rgb": {
    "r": 98,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 265.957,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43984,
    "c": 0.20336,
    "h": 296.5
  },
  "luminance": 0.07134
}

Semantic roles & 50–950 ramp

primary
#6225B2
secondary
#A0C86B
accent
#E93F9F
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6225B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6225B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva