#621797#621797

#621797 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.4% C 0.189 H 305.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#621797
RGBrgb(98, 23, 151)
HSLhsl(275, 74%, 34%)
HSVhsv(275, 85%, 59%)
CMYKcmyk(35.1%, 84.8%, 0%, 40.8%)
CIE-LABlab(27.96, 53.63, -53.98)
CIE-LCHlch(27.96, 76.09, 314.82°)
OKLaboklab(40.37% 0.1094 -0.1539)
OKLCHoklch(40.37% 0.189 305.4)
XYZxyz(10.9280, 5.4439, 29.7472)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#621797 #4C9717
analogous
#221797 #621797 #97178C
triadic
#621797 #976217 #179762
tetradic
#621797 #972217 #4C9717 #178C97
square
#621797 #972217 #4C9717 #178C97
split-complementary
#621797 #8C9717 #179722
monochromatic
#1D072D #400F62 #621797 #841FCC #A246E3

Accessibility & contrast

On white

10.05
#621797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#621797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #621797
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##621797#FFFFFF#000000##FFFFFF
##6217971.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#583B59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #621797;
/* rgb */ color: rgb(98, 23, 151);
/* oklch */ color: oklch(40.4% 0.189 305.4);
Tailwind
colors: {
  custom: {
    50: '#9460b7',
    500: '#621797',
    950: '#000000',
  },
}
SCSS
$custom: #621797;
$custom-light: #9460b7;
$custom-dark: #000000;
JSON
{
  "hex": "#621797",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 275.156,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40369,
    "c": 0.18879,
    "h": 305.4
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#621797
secondary
#7AC446
accent
#F03884
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #621797

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

Preview Lab → · Contrast checker → · Palette generator →

#621797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva