#642898#642898

#642898 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.173 H 304.3°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#642898
RGBrgb(100, 40, 152)
HSLhsl(272, 58%, 38%)
HSVhsv(272, 74%, 60%)
CMYKcmyk(34.2%, 73.7%, 0%, 40.4%)
CIE-LABlab(30.63, 47.61, -50.24)
CIE-LCHlch(30.63, 69.22, 313.46°)
OKLaboklab(42.32% 0.0975 -0.143)
OKLCHoklch(42.32% 0.173 304.3)
XYZxyz(11.6805, 6.4939, 30.3378)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642898 #5C9828
analogous
#2C2898 #642898 #982894
triadic
#642898 #986428 #289864
tetradic
#642898 #982C28 #5C9828 #289498
square
#642898 #982C28 #5C9828 #289498
split-complementary
#642898 #949828 #28982C
monochromatic
#240F37 #441B68 #642898 #8435C8 #A164D6

Accessibility & contrast

On white

9.14
#642898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642898
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642898#FFFFFF#000000##FFFFFF
##6428981.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#5A435E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642898;
/* rgb */ color: rgb(100, 40, 152);
/* oklch */ color: oklch(42.3% 0.173 304.3);
Tailwind
colors: {
  custom: {
    50: '#9568b7',
    500: '#642898',
    950: '#000000',
  },
}
SCSS
$custom: #642898;
$custom-light: #9568b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642898",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 272.143,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4232,
    "c": 0.17306,
    "h": 304.3
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#642898
secondary
#8BBC60
accent
#E2468E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642898

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

Preview Lab → · Contrast checker → · Palette generator →

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