#642FBC#642FBC

#642FBC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.204 H 293.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#642FBC
RGBrgb(100, 47, 188)
HSLhsl(263, 60%, 46%)
HSVhsv(263, 75%, 74%)
CMYKcmyk(46.8%, 75%, 0%, 26.3%)
CIE-LABlab(34.75, 53.53, -65.11)
CIE-LCHlch(34.75, 84.29, 309.42°)
OKLaboklab(46.16% 0.0829 -0.1867)
OKLCHoklch(46.16% 0.204 293.9)
XYZxyz(15.3467, 8.3727, 48.3747)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FBC #87BC2F
analogous
#2F40BC #642FBC #AA2FBC
triadic
#642FBC #BC642F #2FBC64
tetradic
#642FBC #BC2F40 #87BC2F #2FBCAA
square
#642FBC #BC2F40 #87BC2F #2FBCAA
split-complementary
#642FBC #BCAA2F #40BC2F
monochromatic
#30175A #4A238B #642FBC #8454D4 #A785E0

Accessibility & contrast

On white

7.85
#642FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#642FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FBC
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FBC#FFFFFF#000000##FFFFFF
##642FBC1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#4A5574
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #642fbc;
/* rgb */ color: rgb(100, 47, 188);
/* oklch */ color: oklch(46.2% 0.204 293.9);
Tailwind
colors: {
  custom: {
    50: '#986dd1',
    500: '#642fbc',
    950: '#000000',
  },
}
SCSS
$custom: #642fbc;
$custom-light: #986dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#642fbc",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 262.553,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46155,
    "c": 0.20428,
    "h": 293.9
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#642FBC
secondary
#ADCA7D
accent
#E345A8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #642FBC

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

Preview Lab → · Contrast checker → · Palette generator →

#642FBC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva