#6239E2#6239E2

#6239E2 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.6% C 0.236 H 285.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6239E2
RGBrgb(98, 57, 226)
HSLhsl(255, 74%, 55%)
HSVhsv(255, 75%, 89%)
CMYKcmyk(56.6%, 74.8%, 0%, 11.4%)
CIE-LABlab(39.60, 58.84, -79.18)
CIE-LCHlch(39.60, 98.64, 306.62°)
OKLaboklab(50.56% 0.0627 -0.228)
OKLCHoklch(50.56% 0.236 285.4)
XYZxyz(20.2234, 11.0127, 72.9968)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239E2 #B9E239
analogous
#3965E2 #6239E2 #B639E2
triadic
#6239E2 #E26239 #39E262
tetradic
#6239E2 #E23965 #B9E239 #39E2B6
square
#6239E2 #E23965 #B9E239 #39E2B6
split-complementary
#6239E2 #E2B639 #65E239
monochromatic
#32158C #441CC1 #6239E2 #8C6EEA #B7A4F2

Accessibility & contrast

On white

6.56
#6239E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6239E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6239E2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239E2#FFFFFF#000000##FFFFFF
##6239E21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#20698B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6239e2;
/* rgb */ color: rgb(98, 57, 226);
/* oklch */ color: oklch(50.6% 0.236 285.4);
Tailwind
colors: {
  custom: {
    50: '#9c74ec',
    500: '#6239e2',
    950: '#000000',
  },
}
SCSS
$custom: #6239e2;
$custom-light: #9c74ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6239e2",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 226
  },
  "hsl": {
    "h": 254.556,
    "s": 74.449,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50557,
    "c": 0.23648,
    "h": 285.4
  },
  "luminance": 0.11014
}

Semantic roles & 50–950 ramp

primary
#6239E2
secondary
#CEDF98
accent
#F137C4
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6239E2

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

Preview Lab → · Contrast checker → · Palette generator →

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