#CACF38#CACF38

#CACF38 is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.5% C 0.165 H 111.4°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#CACF38
RGBrgb(202, 207, 56)
HSLhsl(62, 61%, 52%)
HSVhsv(62, 73%, 81%)
CMYKcmyk(2.4%, 0%, 72.9%, 18.8%)
CIE-LABlab(80.44, -19.24, 69.50)
CIE-LCHlch(80.44, 72.11, 105.47°)
OKLaboklab(82.48% -0.0601 0.1532)
OKLCHoklch(82.48% 0.165 111.4)
XYZxyz(47.3853, 57.4690, 12.3371)
Luminance0.5747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACF38 #3D38CF
analogous
#CF8938 #CACF38 #7FCF38
triadic
#CACF38 #38CACF #CF38CA
tetradic
#CACF38 #38CF89 #3D38CF #CF387F
square
#CACF38 #38CF89 #3D38CF #CF387F
split-complementary
#CACF38 #387FCF #8938CF
monochromatic
#6E711B #9FA327 #CACF38 #D7DB69 #E4E79B

Accessibility & contrast

On white

1.68
#CACF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.49
#CACF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACF38
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACF38#FFFFFF#000000##000000
##CACF381.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC618
Deuteranopia (green-blind)
#E0C944
Tritanopia (blue-blind)
#D8C2B2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cacf38;
/* rgb */ color: rgb(202, 207, 56);
/* oklch */ color: oklch(82.5% 0.165 111.4);
Tailwind
colors: {
  custom: {
    50: '#dedd7a',
    500: '#cacf38',
    950: '#000000',
  },
}
SCSS
$custom: #cacf38;
$custom-light: #dedd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cacf38",
  "rgb": {
    "r": 202,
    "g": 207,
    "b": 56
  },
  "hsl": {
    "h": 61.987,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.8248,
    "c": 0.16457,
    "h": 111.4
  },
  "luminance": 0.57468
}

Semantic roles & 50–950 ramp

primary
#CACF38
secondary
#33317A
accent
#44E449
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CACF38

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

Preview Lab → · Contrast checker → · Palette generator →

#CACF38 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva