#6239B5#6239B5

#6239B5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.185 H 293.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#6239B5
RGBrgb(98, 57, 181)
HSLhsl(260, 52%, 47%)
HSVhsv(260, 69%, 71%)
CMYKcmyk(45.9%, 68.5%, 0%, 29%)
CIE-LABlab(35.71, 46.34, -59.41)
CIE-LCHlch(35.71, 75.35, 307.95°)
OKLaboklab(46.61% 0.0722 -0.1701)
OKLCHoklch(46.61% 0.185 293)
XYZxyz(14.8383, 8.8587, 44.6352)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239B5 #8CB539
analogous
#394EB5 #6239B5 #A039B5
triadic
#6239B5 #B56239 #39B562
tetradic
#6239B5 #B5394E #8CB539 #39B5A0
square
#6239B5 #B5394E #8CB539 #39B5A0
split-complementary
#6239B5 #B5A039 #4EB539
monochromatic
#301C58 #492A86 #6239B5 #835FCD #A78DDB

Accessibility & contrast

On white

7.58
#6239B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6239B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239B5
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239B5#FFFFFF#000000##FFFFFF
##6239B51.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#4A5872
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6239b5;
/* rgb */ color: rgb(98, 57, 181);
/* oklch */ color: oklch(46.6% 0.185 293.0);
Tailwind
colors: {
  custom: {
    50: '#9672cc',
    500: '#6239b5',
    950: '#000000',
  },
}
SCSS
$custom: #6239b5;
$custom-light: #9672cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6239b5",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 259.839,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46606,
    "c": 0.1848,
    "h": 293
  },
  "luminance": 0.08859
}

Semantic roles & 50–950 ramp

primary
#6239B5
secondary
#B0C684
accent
#DC4CAC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6239B5

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

Preview Lab → · Contrast checker → · Palette generator →

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