#6252CA#6252CA

#6252CA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.1% C 0.179 H 284.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#6252CA
RGBrgb(98, 82, 202)
HSLhsl(248, 53%, 56%)
HSVhsv(248, 59%, 79%)
CMYKcmyk(51.5%, 59.4%, 0%, 20.8%)
CIE-LABlab(42.60, 38.27, -60.49)
CIE-LCHlch(42.60, 71.58, 302.31°)
OKLaboklab(52.11% 0.0444 -0.1732)
OKLCHoklch(52.11% 0.179 284.4)
XYZxyz(18.7118, 12.8945, 57.3686)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6252CA #BACA52
analogous
#527ECA #6252CA #9E52CA
triadic
#6252CA #CA6252 #52CA62
tetradic
#6252CA #CA527E #BACA52 #52CA9E
square
#6252CA #CA527E #BACA52 #52CA9E
split-complementary
#6252CA #CA9E52 #7ECA52
monochromatic
#31267C #4434AB #6252CA #8D81D8 #B7B0E7

Accessibility & contrast

On white

5.87
#6252CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6252CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6252CA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6252CA#FFFFFF#000000##FFFFFF
##6252CA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#396E86
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6252ca;
/* rgb */ color: rgb(98, 82, 202);
/* oklch */ color: oklch(52.1% 0.179 284.4);
Tailwind
colors: {
  custom: {
    50: '#9783db',
    500: '#6252ca',
    950: '#000000',
  },
}
SCSS
$custom: #6252ca;
$custom-light: #9783db;
$custom-dark: #000000;
JSON
{
  "hex": "#6252ca",
  "rgb": {
    "r": 98,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 248,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52109,
    "c": 0.17886,
    "h": 284.4
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#6252CA
secondary
#CED5A3
accent
#DD4BC9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6252CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6252CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva