#AFB74A#AFB74A

#AFB74A is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.2% C 0.133 H 113.1°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#AFB74A
RGBrgb(175, 183, 74)
HSLhsl(64, 43%, 50%)
HSVhsv(64, 60%, 72%)
CMYKcmyk(4.4%, 0%, 59.6%, 28.2%)
CIE-LABlab(71.88, -17.52, 53.08)
CIE-LCHlch(71.88, 55.90, 108.27°)
OKLaboklab(75.15% -0.052 0.1221)
OKLCHoklch(75.15% 0.133 113.1)
XYZxyz(35.8496, 43.4760, 12.9805)
Luminance0.4348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB74A #524AB7
analogous
#B7894A #AFB74A #78B74A
triadic
#AFB74A #4AAFB7 #B74AAF
tetradic
#AFB74A #4AB789 #524AB7 #B74A78
square
#AFB74A #4AB789 #524AB7 #B74A78
split-complementary
#AFB74A #4A78B7 #894AB7
monochromatic
#5C6026 #868C38 #AFB74A #C2C876 #D6DAA2

Accessibility & contrast

On white

2.17
#AFB74A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#AFB74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB74A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB74A#FFFFFF#000000##000000
##AFB74A1.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF3E
Deuteranopia (green-blind)
#C4B151
Tritanopia (blue-blind)
#BAADA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb74a;
/* rgb */ color: rgb(175, 183, 74);
/* oklch */ color: oklch(75.2% 0.133 113.1);
Tailwind
colors: {
  custom: {
    50: '#c9cc81',
    500: '#afb74a',
    950: '#000000',
  },
}
SCSS
$custom: #afb74a;
$custom-light: #c9cc81;
$custom-dark: #000000;
JSON
{
  "hex": "#afb74a",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 74
  },
  "hsl": {
    "h": 64.404,
    "s": 43.083,
    "l": 50.392
  },
  "oklch": {
    "l": 0.75151,
    "c": 0.13268,
    "h": 113.1
  },
  "luminance": 0.43475
}

Semantic roles & 50–950 ramp

primary
#AFB74A
secondary
#9A96C7
accent
#55D35E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB74A

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

Preview Lab → · Contrast checker → · Palette generator →

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