#AFC538#AFC538

#AFC538 is a light, vivid yellow. Relative luminance 0.493; OKLCH L 78.1% C 0.162 H 118.1°. Best body text is #000000 at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#AFC538
RGBrgb(175, 197, 56)
HSLhsl(69, 56%, 50%)
HSVhsv(69, 72%, 77%)
CMYKcmyk(11.2%, 0%, 71.6%, 22.7%)
CIE-LABlab(75.66, -25.57, 64.20)
CIE-LCHlch(75.66, 69.11, 111.72°)
OKLaboklab(78.14% -0.0763 0.1429)
OKLCHoklch(78.14% 0.162 118.1)
XYZxyz(38.3601, 49.3323, 11.2419)
Luminance0.4933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC538 #4E38C5
analogous
#C59538 #AFC538 #68C538
triadic
#AFC538 #38AFC5 #C538AF
tetradic
#AFC538 #38C595 #4E38C5 #C53868
square
#AFC538 #38C595 #4E38C5 #C53868
split-complementary
#AFC538 #3868C5 #9538C5
monochromatic
#5A661D #85952A #AFC538 #C3D467 #D6E196

Accessibility & contrast

On white

1.93
#AFC538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.87
#AFC538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC538
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC538#FFFFFF#000000##000000
##AFC5381.001.9310.8710.87
#FFFFFF1.931.0021.0021.00
#00000010.8721.001.001.00
##00000010.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1E
Deuteranopia (green-blind)
#D0BB44
Tritanopia (blue-blind)
#BABAAA
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #afc538;
/* rgb */ color: rgb(175, 197, 56);
/* oklch */ color: oklch(78.1% 0.162 118.1);
Tailwind
colors: {
  custom: {
    50: '#cad678',
    500: '#afc538',
    950: '#000000',
  },
}
SCSS
$custom: #afc538;
$custom-light: #cad678;
$custom-dark: #000000;
JSON
{
  "hex": "#afc538",
  "rgb": {
    "r": 175,
    "g": 197,
    "b": 56
  },
  "hsl": {
    "h": 69.362,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.7814,
    "c": 0.16194,
    "h": 118.1
  },
  "luminance": 0.49332
}

Semantic roles & 50–950 ramp

primary
#AFC538
secondary
#968CCD
accent
#49DF60
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC538

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

Preview Lab → · Contrast checker → · Palette generator →

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