#6252CB#6252CB

#6252CB is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.2% C 0.180 H 284.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#6252CB
RGBrgb(98, 82, 203)
HSLhsl(248, 54%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(51.7%, 59.6%, 0%, 20.4%)
CIE-LABlab(42.68, 38.57, -60.96)
CIE-LCHlch(42.68, 72.13, 302.32°)
OKLaboklab(52.18% 0.0444 -0.1746)
OKLCHoklch(52.18% 0.18 284.3)
XYZxyz(18.8305, 12.9420, 57.9942)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6252CB #BBCB52
analogous
#527ECB #6252CB #9E52CB
triadic
#6252CB #CB6252 #52CB62
tetradic
#6252CB #CB527E #BBCB52 #52CB9E
square
#6252CB #CB527E #BBCB52 #52CB9E
split-complementary
#6252CB #CB9E52 #7ECB52
monochromatic
#31267D #4434AC #6252CB #8D81D9 #B7B0E7

Accessibility & contrast

On white

5.85
#6252CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#6252CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6252CB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6252CB#FFFFFF#000000##FFFFFF
##6252CB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#386E87
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6252cb;
/* rgb */ color: rgb(98, 82, 203);
/* oklch */ color: oklch(52.2% 0.180 284.3);
Tailwind
colors: {
  custom: {
    50: '#9783dc',
    500: '#6252cb',
    950: '#000000',
  },
}
SCSS
$custom: #6252cb;
$custom-light: #9783dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6252cb",
  "rgb": {
    "r": 98,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 247.934,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52184,
    "c": 0.18016,
    "h": 284.3
  },
  "luminance": 0.12943
}

Semantic roles & 50–950 ramp

primary
#6252CB
secondary
#CFD5A3
accent
#DD4BCA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6252CB

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

Preview Lab → · Contrast checker → · Palette generator →

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