#6239B2#6239B2

#6239B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.181 H 293.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#6239B2
RGBrgb(98, 57, 178)
HSLhsl(260, 51%, 46%)
HSVhsv(260, 68%, 70%)
CMYKcmyk(44.9%, 68%, 0%, 30.2%)
CIE-LABlab(35.47, 45.51, -58.02)
CIE-LCHlch(35.47, 73.74, 308.11°)
OKLaboklab(46.36% 0.0727 -0.166)
OKLCHoklch(46.36% 0.181 293.7)
XYZxyz(14.5338, 8.7369, 43.0315)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239B2 #89B239
analogous
#394CB2 #6239B2 #9E39B2
triadic
#6239B2 #B26239 #39B262
tetradic
#6239B2 #B2394C #89B239 #39B29E
square
#6239B2 #B2394C #89B239 #39B29E
split-complementary
#6239B2 #B29E39 #4CB239
monochromatic
#2F1B55 #482A84 #6239B2 #825DCB #A68BDA

Accessibility & contrast

On white

7.64
#6239B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6239B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239B2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239B2#FFFFFF#000000##FFFFFF
##6239B21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#4B5771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6239b2;
/* rgb */ color: rgb(98, 57, 178);
/* oklch */ color: oklch(46.4% 0.181 293.7);
Tailwind
colors: {
  custom: {
    50: '#9572ca',
    500: '#6239b2',
    950: '#000000',
  },
}
SCSS
$custom: #6239b2;
$custom-light: #9572ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6239b2",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 260.331,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46361,
    "c": 0.18122,
    "h": 293.7
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#6239B2
secondary
#AEC482
accent
#DB4DAB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6239B2

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

Preview Lab → · Contrast checker → · Palette generator →

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