#672198#672198

#672198 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.182 H 306.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#672198
RGBrgb(103, 33, 152)
HSLhsl(275, 64%, 36%)
HSVhsv(275, 78%, 60%)
CMYKcmyk(32.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(30.01, 51.15, -51.23)
CIE-LCHlch(30.01, 72.39, 314.96°)
OKLaboklab(41.97% 0.1085 -0.1457)
OKLCHoklch(41.97% 0.182 306.7)
XYZxyz(11.8036, 6.2384, 30.2820)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#672198 #529821
analogous
#2C2198 #672198 #98218E
triadic
#672198 #986721 #219867
tetradic
#672198 #982C21 #529821 #218E98
square
#672198 #982C21 #529821 #218E98
split-complementary
#672198 #8E9821 #21982C
monochromatic
#230B33 #451666 #672198 #892CCA #A559DB

Accessibility & contrast

On white

9.34
#672198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#672198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #672198
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##672198#FFFFFF#000000##FFFFFF
##6721981.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#5E3F5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #672198;
/* rgb */ color: rgb(103, 33, 152);
/* oklch */ color: oklch(42.0% 0.182 306.7);
Tailwind
colors: {
  custom: {
    50: '#9765b7',
    500: '#672198',
    950: '#000000',
  },
}
SCSS
$custom: #672198;
$custom-light: #9765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#672198",
  "rgb": {
    "r": 103,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 275.294,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41973,
    "c": 0.18166,
    "h": 306.7
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#672198
secondary
#81BF56
accent
#E74085
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #672198

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

Preview Lab → · Contrast checker → · Palette generator →

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