#AFC438#AFC438

#AFC438 is a light, vivid yellow. Relative luminance 0.489; OKLCH L 77.9% C 0.161 H 117.8°. Best body text is #000000 at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#AFC438
RGBrgb(175, 196, 56)
HSLhsl(69, 56%, 49%)
HSVhsv(69, 71%, 77%)
CMYKcmyk(10.7%, 0%, 71.4%, 23.1%)
CIE-LABlab(75.38, -25.09, 63.93)
CIE-LCHlch(75.38, 68.68, 111.43°)
OKLaboklab(77.91% -0.0749 0.1423)
OKLCHoklch(77.91% 0.161 117.8)
XYZxyz(38.1338, 48.8797, 11.1665)
Luminance0.4888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC438 #4D38C4
analogous
#C49338 #AFC438 #69C438
triadic
#AFC438 #38AFC4 #C438AF
tetradic
#AFC438 #38C493 #4D38C4 #C43869
square
#AFC438 #38C493 #4D38C4 #C43869
split-complementary
#AFC438 #3869C4 #9338C4
monochromatic
#5A651D #85942A #AFC438 #C3D366 #D6E196

Accessibility & contrast

On white

1.95
#AFC438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.78
#AFC438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC438
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC438#FFFFFF#000000##000000
##AFC4381.001.9510.7810.78
#FFFFFF1.951.0021.0021.00
#00000010.7821.001.001.00
##00000010.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B91F
Deuteranopia (green-blind)
#CFBA43
Tritanopia (blue-blind)
#BAB9A9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #afc438;
/* rgb */ color: rgb(175, 196, 56);
/* oklch */ color: oklch(77.9% 0.161 117.8);
Tailwind
colors: {
  custom: {
    50: '#cad578',
    500: '#afc438',
    950: '#000000',
  },
}
SCSS
$custom: #afc438;
$custom-light: #cad578;
$custom-dark: #000000;
JSON
{
  "hex": "#afc438",
  "rgb": {
    "r": 175,
    "g": 196,
    "b": 56
  },
  "hsl": {
    "h": 69,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.77914,
    "c": 0.1608,
    "h": 117.8
  },
  "luminance": 0.48879
}

Semantic roles & 50–950 ramp

primary
#AFC438
secondary
#958CCC
accent
#49DF5F
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC438

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

Preview Lab → · Contrast checker → · Palette generator →

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