#62338E#62338E

#62338E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.146 H 304.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#62338E
RGBrgb(98, 51, 142)
HSLhsl(271, 47%, 38%)
HSVhsv(271, 64%, 56%)
CMYKcmyk(31%, 64.1%, 0%, 44.3%)
CIE-LABlab(31.62, 39.16, -42.51)
CIE-LCHlch(31.62, 57.80, 312.65°)
OKLaboklab(42.74% 0.0834 -0.1204)
OKLCHoklch(42.74% 0.146 304.7)
XYZxyz(11.1022, 6.9174, 26.3362)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62338E #5F8E33
analogous
#35338E #62338E #8E338C
triadic
#62338E #8E6233 #338E62
tetradic
#62338E #8E3533 #5F8E33 #338C8E
square
#62338E #8E3533 #5F8E33 #338C8E
split-complementary
#62338E #8C8E33 #338E35
monochromatic
#241334 #432361 #62338E #8143BB #9F70CC

Accessibility & contrast

On white

8.81
#62338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#62338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62338E
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62338E#FFFFFF#000000##FFFFFF
##62338E1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#5A465B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #62338e;
/* rgb */ color: rgb(98, 51, 142);
/* oklch */ color: oklch(42.7% 0.146 304.7);
Tailwind
colors: {
  custom: {
    50: '#926db0',
    500: '#62338e',
    950: '#000000',
  },
}
SCSS
$custom: #62338e;
$custom-light: #926db0;
$custom-dark: #000000;
JSON
{
  "hex": "#62338e",
  "rgb": {
    "r": 98,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 270.989,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42741,
    "c": 0.14645,
    "h": 304.7
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#62338E
secondary
#8DB469
accent
#D75192
background
#F9F6FA
surface
#F2ECF5
border
#CCC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #62338E

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

Preview Lab → · Contrast checker → · Palette generator →

#62338E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva