#642297#642297

#642297 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.179 H 305.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#642297
RGBrgb(100, 34, 151)
HSLhsl(274, 63%, 36%)
HSVhsv(274, 77%, 59%)
CMYKcmyk(33.8%, 77.5%, 0%, 40.8%)
CIE-LABlab(29.63, 49.97, -51.24)
CIE-LCHlch(29.63, 71.58, 314.28°)
OKLaboklab(41.6% 0.1035 -0.1459)
OKLCHoklch(41.6% 0.179 305.4)
XYZxyz(11.4122, 6.0878, 29.8460)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642297 #559722
analogous
#2A2297 #642297 #972290
triadic
#642297 #976422 #229764
tetradic
#642297 #972A22 #559722 #229097
square
#642297 #972A22 #559722 #229097
split-complementary
#642297 #909722 #22972A
monochromatic
#220C33 #431765 #642297 #852DC9 #A25ADA

Accessibility & contrast

On white

9.47
#642297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#642297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642297
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642297#FFFFFF#000000##FFFFFF
##6422971.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#5B405B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642297;
/* rgb */ color: rgb(100, 34, 151);
/* oklch */ color: oklch(41.6% 0.179 305.4);
Tailwind
colors: {
  custom: {
    50: '#9565b6',
    500: '#642297',
    950: '#000000',
  },
}
SCSS
$custom: #642297;
$custom-light: #9565b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642297",
  "rgb": {
    "r": 100,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 273.846,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.17886,
    "h": 305.4
  },
  "luminance": 0.06088
}

Semantic roles & 50–950 ramp

primary
#642297
secondary
#84BE57
accent
#E64289
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642297

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

Preview Lab → · Contrast checker → · Palette generator →

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