#AFB140#AFB140

#AFB140 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.7% C 0.134 H 110.3°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#AFB140
RGBrgb(175, 177, 64)
HSLhsl(61, 47%, 47%)
HSVhsv(61, 64%, 69%)
CMYKcmyk(1.1%, 0%, 63.8%, 30.6%)
CIE-LABlab(70.13, -15.16, 55.51)
CIE-LCHlch(70.13, 57.54, 105.28°)
OKLaboklab(73.72% -0.0464 0.1258)
OKLCHoklch(73.72% 0.134 110.3)
XYZxyz(34.3278, 40.9293, 10.9413)
Luminance0.4093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB140 #4240B1
analogous
#B17B40 #AFB140 #77B140
triadic
#AFB140 #40AFB1 #B140AF
tetradic
#AFB140 #40B17B #4240B1 #B14077
square
#AFB140 #40B17B #4240B1 #B14077
split-complementary
#AFB140 #4077B1 #7B40B1
monochromatic
#56571F #838430 #AFB140 #C6C866 #D7D893

Accessibility & contrast

On white

2.29
#AFB140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#AFB140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB140
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB140#FFFFFF#000000##000000
##AFB1401.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA31
Deuteranopia (green-blind)
#C0AD47
Tritanopia (blue-blind)
#BBA69A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb140;
/* rgb */ color: rgb(175, 177, 64);
/* oklch */ color: oklch(73.7% 0.134 110.3);
Tailwind
colors: {
  custom: {
    50: '#cac87a',
    500: '#afb140',
    950: '#000000',
  },
}
SCSS
$custom: #afb140;
$custom-light: #cac87a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb140",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 61.062,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73724,
    "c": 0.1341,
    "h": 110.3
  },
  "luminance": 0.40928
}

Semantic roles & 50–950 ramp

primary
#AFB140
secondary
#8A89C3
accent
#51D754
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB140

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

Preview Lab → · Contrast checker → · Palette generator →

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