#AFB74C#AFB74C

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

Color values

HEX#AFB74C
RGBrgb(175, 183, 76)
HSLhsl(64, 43%, 51%)
HSVhsv(64, 58%, 72%)
CMYKcmyk(4.4%, 0%, 58.5%, 28.2%)
CIE-LABlab(71.90, -17.37, 52.21)
CIE-LCHlch(71.90, 55.02, 108.40°)
OKLaboklab(75.17% -0.0514 0.1205)
OKLCHoklch(75.17% 0.131 113.1)
XYZxyz(35.9180, 43.5034, 13.3410)
Luminance0.4350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB74C #544CB7
analogous
#B7894C #AFB74C #79B74C
triadic
#AFB74C #4CAFB7 #B74CAF
tetradic
#AFB74C #4CB789 #544CB7 #B74C79
square
#AFB74C #4CB789 #544CB7 #B74C79
split-complementary
#AFB74C #4C79B7 #894CB7
monochromatic
#5D6127 #878D39 #AFB74C #C3C978 #D6DAA3

Accessibility & contrast

On white

2.16
#AFB74C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB74C#FFFFFF#000000##000000
##AFB74C1.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb74c;
/* rgb */ color: rgb(175, 183, 76);
/* oklch */ color: oklch(75.2% 0.131 113.1);
Tailwind
colors: {
  custom: {
    50: '#c9cc82',
    500: '#afb74c',
    950: '#000000',
  },
}
SCSS
$custom: #afb74c;
$custom-light: #c9cc82;
$custom-dark: #000000;
JSON
{
  "hex": "#afb74c",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 76
  },
  "hsl": {
    "h": 64.486,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.75171,
    "c": 0.13097,
    "h": 113.1
  },
  "luminance": 0.43503
}

Semantic roles & 50–950 ramp

primary
#AFB74C
secondary
#9B98C7
accent
#55D25F
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB74C

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

Preview Lab → · Contrast checker → · Palette generator →

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