#AFC336#AFC336

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

Color values

HEX#AFC336
RGBrgb(175, 195, 54)
HSLhsl(69, 57%, 49%)
HSVhsv(69, 72%, 76%)
CMYKcmyk(10.3%, 0%, 72.3%, 23.5%)
CIE-LABlab(75.08, -24.71, 64.35)
CIE-LCHlch(75.08, 68.93, 111.01°)
OKLaboklab(77.67% -0.074 0.1428)
OKLCHoklch(77.67% 0.161 117.4)
XYZxyz(37.8610, 48.4109, 10.8390)
Luminance0.4841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC336 #4A36C3
analogous
#C39136 #AFC336 #68C336
triadic
#AFC336 #36AFC3 #C336AF
tetradic
#AFC336 #36C391 #4A36C3 #C33668
square
#AFC336 #36C391 #4A36C3 #C33668
split-complementary
#AFC336 #3668C3 #9136C3
monochromatic
#59631B #849329 #AFC336 #C4D463 #D6E192

Accessibility & contrast

On white

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

On black

10.68
#AFC336 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC336
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC336#FFFFFF#000000##000000
##AFC3361.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afc336;
/* rgb */ color: rgb(175, 195, 54);
/* oklch */ color: oklch(77.7% 0.161 117.4);
Tailwind
colors: {
  custom: {
    50: '#cad577',
    500: '#afc336',
    950: '#000000',
  },
}
SCSS
$custom: #afc336;
$custom-light: #cad577;
$custom-dark: #000000;
JSON
{
  "hex": "#afc336",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 54
  },
  "hsl": {
    "h": 68.511,
    "s": 56.627,
    "l": 48.824
  },
  "oklch": {
    "l": 0.77674,
    "c": 0.16088,
    "h": 117.4
  },
  "luminance": 0.48411
}

Semantic roles & 50–950 ramp

primary
#AFC336
secondary
#9289CC
accent
#48E05D
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC336

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

Preview Lab → · Contrast checker → · Palette generator →

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