#AFC338#AFC338

#AFC338 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.7% C 0.160 H 117.4°. Best body text is #000000 at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#AFC338
RGBrgb(175, 195, 56)
HSLhsl(69, 55%, 49%)
HSVhsv(69, 71%, 76%)
CMYKcmyk(10.3%, 0%, 71.3%, 23.5%)
CIE-LABlab(75.10, -24.60, 63.66)
CIE-LCHlch(75.10, 68.25, 111.13°)
OKLaboklab(77.69% -0.0736 0.1417)
OKLCHoklch(77.69% 0.16 117.4)
XYZxyz(37.9090, 48.4301, 11.0915)
Luminance0.4843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC338 #4C38C3
analogous
#C39238 #AFC338 #6AC338
triadic
#AFC338 #38AFC3 #C338AF
tetradic
#AFC338 #38C392 #4C38C3 #C3386A
square
#AFC338 #38C392 #4C38C3 #C3386A
split-complementary
#AFC338 #386AC3 #9238C3
monochromatic
#5A641D #84932A #AFC338 #C3D365 #D6E195

Accessibility & contrast

On white

1.97
#AFC338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.69
#AFC338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC338
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC338#FFFFFF#000000##000000
##AFC3381.001.9710.6910.69
#FFFFFF1.971.0021.0021.00
#00000010.6921.001.001.00
##00000010.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B81F
Deuteranopia (green-blind)
#CEBA43
Tritanopia (blue-blind)
#BAB8A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc338;
/* rgb */ color: rgb(175, 195, 56);
/* oklch */ color: oklch(77.7% 0.160 117.4);
Tailwind
colors: {
  custom: {
    50: '#cad578',
    500: '#afc338',
    950: '#000000',
  },
}
SCSS
$custom: #afc338;
$custom-light: #cad578;
$custom-dark: #000000;
JSON
{
  "hex": "#afc338",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 68.633,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.77688,
    "c": 0.15966,
    "h": 117.4
  },
  "luminance": 0.4843
}

Semantic roles & 50–950 ramp

primary
#AFC338
secondary
#948BCC
accent
#49DF5F
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC338

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

Preview Lab → · Contrast checker → · Palette generator →

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