#672498#672498

#672498 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.178 H 306.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#672498
RGBrgb(103, 36, 152)
HSLhsl(275, 62%, 37%)
HSVhsv(275, 76%, 60%)
CMYKcmyk(32.2%, 76.3%, 0%, 40.4%)
CIE-LABlab(30.43, 49.94, -50.54)
CIE-LCHlch(30.43, 71.05, 314.66°)
OKLaboklab(42.27% 0.1058 -0.1437)
OKLCHoklch(42.27% 0.178 306.3)
XYZxyz(11.8907, 6.4124, 30.3110)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#672498 #559824
analogous
#2D2498 #672498 #98248F
triadic
#672498 #986724 #249867
tetradic
#672498 #982D24 #559824 #248F98
square
#672498 #982D24 #559824 #248F98
split-complementary
#672498 #8F9824 #24982D
monochromatic
#240D35 #451867 #672498 #8930C9 #A55ED9

Accessibility & contrast

On white

9.20
#672498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#672498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #672498
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##672498#FFFFFF#000000##FFFFFF
##6724981.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #672498;
/* rgb */ color: rgb(103, 36, 152);
/* oklch */ color: oklch(42.3% 0.178 306.3);
Tailwind
colors: {
  custom: {
    50: '#9766b7',
    500: '#672498',
    950: '#000000',
  },
}
SCSS
$custom: #672498;
$custom-light: #9766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#672498",
  "rgb": {
    "r": 103,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 274.655,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.17843,
    "h": 306.3
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#672498
secondary
#84BE5A
accent
#E54387
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #672498

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

Preview Lab → · Contrast checker → · Palette generator →

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