#AFC638#AFC638

#AFC638 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.4% C 0.163 H 118.4°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#AFC638
RGBrgb(175, 198, 56)
HSLhsl(70, 56%, 50%)
HSVhsv(70, 72%, 78%)
CMYKcmyk(11.6%, 0%, 71.7%, 22.4%)
CIE-LABlab(75.94, -26.06, 64.48)
CIE-LCHlch(75.94, 69.54, 112.00°)
OKLaboklab(78.37% -0.0776 0.1434)
OKLCHoklch(78.37% 0.163 118.4)
XYZxyz(38.5879, 49.7880, 11.3178)
Luminance0.4979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC638 #4F38C6
analogous
#C69638 #AFC638 #68C638
triadic
#AFC638 #38AFC6 #C638AF
tetradic
#AFC638 #38C696 #4F38C6 #C63868
square
#AFC638 #38C696 #4F38C6 #C63868
split-complementary
#AFC638 #3868C6 #9638C6
monochromatic
#5B671D #85962B #AFC638 #C2D467 #D5E297

Accessibility & contrast

On white

1.92
#AFC638 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.96
#AFC638 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC638
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC638#FFFFFF#000000##000000
##AFC6381.001.9210.9610.96
#FFFFFF1.921.0021.0021.00
#00000010.9621.001.001.00
##00000010.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1E
Deuteranopia (green-blind)
#D1BC44
Tritanopia (blue-blind)
#B9BBAA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #afc638;
/* rgb */ color: rgb(175, 198, 56);
/* oklch */ color: oklch(78.4% 0.163 118.4);
Tailwind
colors: {
  custom: {
    50: '#cad778',
    500: '#afc638',
    950: '#000000',
  },
}
SCSS
$custom: #afc638;
$custom-light: #cad778;
$custom-dark: #000000;
JSON
{
  "hex": "#afc638",
  "rgb": {
    "r": 175,
    "g": 198,
    "b": 56
  },
  "hsl": {
    "h": 69.718,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.78366,
    "c": 0.16307,
    "h": 118.4
  },
  "luminance": 0.49788
}

Semantic roles & 50–950 ramp

primary
#AFC638
secondary
#978DCD
accent
#49DF61
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC638

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

Preview Lab → · Contrast checker → · Palette generator →

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