#6239C1#6239C1

#6239C1 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.199 H 290.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6239C1
RGBrgb(98, 57, 193)
HSLhsl(258, 54%, 49%)
HSVhsv(258, 70%, 76%)
CMYKcmyk(49.2%, 70.5%, 0%, 24.3%)
CIE-LABlab(36.69, 49.66, -64.88)
CIE-LCHlch(36.69, 81.71, 307.43°)
OKLaboklab(47.61% 0.0701 -0.1861)
OKLCHoklch(47.61% 0.199 290.6)
XYZxyz(16.1230, 9.3725, 51.4013)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239C1 #98C139
analogous
#3954C1 #6239C1 #A639C1
triadic
#6239C1 #C16239 #39C162
tetradic
#6239C1 #C13954 #98C139 #39C1A6
square
#6239C1 #C13954 #98C139 #39C1A6
split-complementary
#6239C1 #C1A639 #54C139
monochromatic
#321D63 #4A2B92 #6239C1 #8666D2 #AB95E0

Accessibility & contrast

On white

7.31
#6239C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6239C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239C1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239C1#FFFFFF#000000##FFFFFF
##6239C11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#425C79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6239c1;
/* rgb */ color: rgb(98, 57, 193);
/* oklch */ color: oklch(47.6% 0.199 290.6);
Tailwind
colors: {
  custom: {
    50: '#9773d5',
    500: '#6239c1',
    950: '#000000',
  },
}
SCSS
$custom: #6239c1;
$custom-light: #9773d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6239c1",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 193
  },
  "hsl": {
    "h": 258.088,
    "s": 54.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47611,
    "c": 0.19891,
    "h": 290.6
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#6239C1
secondary
#B8CB8B
accent
#DE4AB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6239C1

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

Preview Lab → · Contrast checker → · Palette generator →

#6239C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva