#AFC162#AFC162

#AFC162 is a light, vivid yellow-green. Relative luminance 0.481; OKLCH L 77.7% C 0.123 H 118.2°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#AFC162
RGBrgb(175, 193, 98)
HSLhsl(71, 43%, 57%)
HSVhsv(71, 49%, 76%)
CMYKcmyk(9.3%, 0%, 49.2%, 24.3%)
CIE-LABlab(74.91, -20.46, 45.39)
CIE-LCHlch(74.91, 49.79, 114.26°)
OKLaboklab(77.66% -0.0579 0.108)
OKLCHoklch(77.66% 0.123 118.2)
XYZxyz(38.9541, 48.1360, 18.7920)
Luminance0.4814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC162 #7462C1
analogous
#C1A362 #AFC162 #80C162
triadic
#AFC162 #62AFC1 #C162AF
tetradic
#AFC162 #62C1A3 #7462C1 #C16280
square
#AFC162 #62C1A3 #7462C1 #C16280
split-complementary
#AFC162 #6280C1 #A362C1
monochromatic
#6B7930 #92A541 #AFC162 #C5D28E #DCE4BA

Accessibility & contrast

On white

1.98
#AFC162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.63
#AFC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC162
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC162#FFFFFF#000000##000000
##AFC1621.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB85A
Deuteranopia (green-blind)
#CAB967
Tritanopia (blue-blind)
#B7B8AB
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc162;
/* rgb */ color: rgb(175, 193, 98);
/* oklch */ color: oklch(77.7% 0.123 118.2);
Tailwind
colors: {
  custom: {
    50: '#c8d391',
    500: '#afc162',
    950: '#000000',
  },
}
SCSS
$custom: #afc162;
$custom-light: #c8d391;
$custom-dark: #000000;
JSON
{
  "hex": "#afc162",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 71.368,
    "s": 43.379,
    "l": 57.059
  },
  "oklch": {
    "l": 0.7766,
    "c": 0.12252,
    "h": 118.2
  },
  "luminance": 0.48136
}

Semantic roles & 50–950 ramp

primary
#AFC162
secondary
#B3ACD3
accent
#55D36D
background
#FCFCF9
surface
#F8F9F1
border
#D1D2CB
text
#13140D
muted
#82827E

Preview Lab

Preview with #AFC162

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

Preview Lab → · Contrast checker → · Palette generator →

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