#672797#672797

#672797 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.174 H 306.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#672797
RGBrgb(103, 39, 151)
HSLhsl(274, 59%, 37%)
HSVhsv(274, 74%, 59%)
CMYKcmyk(31.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(30.81, 48.41, -49.32)
CIE-LCHlch(30.81, 69.11, 314.47°)
OKLaboklab(42.51% 0.103 -0.1401)
OKLCHoklch(42.51% 0.174 306.3)
XYZxyz(11.9037, 6.5691, 29.9130)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#672797 #579727
analogous
#2F2797 #672797 #97278F
triadic
#672797 #976727 #279767
tetradic
#672797 #972F27 #579727 #278F97
square
#672797 #972F27 #579727 #278F97
split-complementary
#672797 #8F9727 #27972F
monochromatic
#250E36 #461A66 #672797 #8834C8 #A562D6

Accessibility & contrast

On white

9.08
#672797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#672797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #672797
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##672797#FFFFFF#000000##FFFFFF
##6727971.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#5F425D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #672797;
/* rgb */ color: rgb(103, 39, 151);
/* oklch */ color: oklch(42.5% 0.174 306.3);
Tailwind
colors: {
  custom: {
    50: '#9767b6',
    500: '#672797',
    950: '#000000',
  },
}
SCSS
$custom: #672797;
$custom-light: #9767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#672797",
  "rgb": {
    "r": 103,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 274.286,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42511,
    "c": 0.17393,
    "h": 306.3
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#672797
secondary
#86BC5E
accent
#E24689
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #672797

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

Preview Lab → · Contrast checker → · Palette generator →

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