#AFB442#AFB442

#AFB442 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.4% C 0.136 H 111.7°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#AFB442
RGBrgb(175, 180, 66)
HSLhsl(63, 46%, 48%)
HSVhsv(63, 63%, 71%)
CMYKcmyk(2.8%, 0%, 63.3%, 29.4%)
CIE-LABlab(70.97, -16.56, 55.57)
CIE-LCHlch(70.97, 57.98, 106.60°)
OKLaboklab(74.41% -0.0501 0.1262)
OKLCHoklch(74.41% 0.136 111.7)
XYZxyz(34.9848, 42.1506, 11.4462)
Luminance0.4215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB442 #4742B4
analogous
#B48042 #AFB442 #76B442
triadic
#AFB442 #42AFB4 #B442AF
tetradic
#AFB442 #42B480 #4742B4 #B44276
square
#AFB442 #42B480 #4742B4 #B44276
split-complementary
#AFB442 #4276B4 #8042B4
monochromatic
#585A21 #838732 #AFB442 #C4C96B #D6D997

Accessibility & contrast

On white

2.23
#AFB442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#AFB442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB442
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB442#FFFFFF#000000##000000
##AFB4421.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC33
Deuteranopia (green-blind)
#C2AF49
Tritanopia (blue-blind)
#BAA99C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb442;
/* rgb */ color: rgb(175, 180, 66);
/* oklch */ color: oklch(74.4% 0.136 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca7c',
    500: '#afb442',
    950: '#000000',
  },
}
SCSS
$custom: #afb442;
$custom-light: #caca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb442",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 66
  },
  "hsl": {
    "h": 62.632,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.74407,
    "c": 0.13582,
    "h": 111.7
  },
  "luminance": 0.4215
}

Semantic roles & 50–950 ramp

primary
#AFB442
secondary
#8F8DC5
accent
#52D658
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB442

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

Preview Lab → · Contrast checker → · Palette generator →

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