#672A98#672A98

#672A98 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.171 H 305.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#672A98
RGBrgb(103, 42, 152)
HSLhsl(273, 57%, 38%)
HSVhsv(273, 72%, 60%)
CMYKcmyk(32.2%, 72.4%, 0%, 40.4%)
CIE-LABlab(31.36, 47.29, -49.02)
CIE-LCHlch(31.36, 68.12, 313.97°)
OKLaboklab(42.93% 0.0998 -0.1393)
OKLCHoklch(42.93% 0.171 305.6)
XYZxyz(12.0877, 6.8066, 30.3767)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#672A98 #5B982A
analogous
#302A98 #672A98 #982A92
triadic
#672A98 #98672A #2A9867
tetradic
#672A98 #98302A #5B982A #2A9298
square
#672A98 #98302A #5B982A #2A9298
split-complementary
#672A98 #92982A #2A9830
monochromatic
#261038 #471D68 #672A98 #8737C8 #A467D5

Accessibility & contrast

On white

8.89
#672A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#672A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #672A98
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##672A98#FFFFFF#000000##FFFFFF
##672A981.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#5E445E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #672a98;
/* rgb */ color: rgb(103, 42, 152);
/* oklch */ color: oklch(42.9% 0.171 305.6);
Tailwind
colors: {
  custom: {
    50: '#9769b7',
    500: '#672a98',
    950: '#000000',
  },
}
SCSS
$custom: #672a98;
$custom-light: #9769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#672a98",
  "rgb": {
    "r": 103,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 273.273,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42931,
    "c": 0.17134,
    "h": 305.6
  },
  "luminance": 0.06806
}

Semantic roles & 50–950 ramp

primary
#672A98
secondary
#8ABB62
accent
#E0488C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #672A98

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

Preview Lab → · Contrast checker → · Palette generator →

#672A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva