#AFB74F#AFB74F

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

Color values

HEX#AFB74F
RGBrgb(175, 183, 79)
HSLhsl(65, 42%, 51%)
HSVhsv(65, 57%, 72%)
CMYKcmyk(4.4%, 0%, 56.8%, 28.2%)
CIE-LABlab(71.92, -17.14, 50.88)
CIE-LCHlch(71.92, 53.69, 108.61°)
OKLaboklab(75.2% -0.0504 0.118)
OKLCHoklch(75.2% 0.128 113.1)
XYZxyz(36.0248, 43.5461, 13.9031)
Luminance0.4355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB74F #574FB7
analogous
#B78B4F #AFB74F #7BB74F
triadic
#AFB74F #4FAFB7 #B74FAF
tetradic
#AFB74F #4FB78B #574FB7 #B74F7B
square
#AFB74F #4FB78B #574FB7 #B74F7B
split-complementary
#AFB74F #4F7BB7 #8B4FB7
monochromatic
#5F6329 #888F3A #AFB74F #C3C97A #D6DBA6

Accessibility & contrast

On white

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

On black

9.71
#AFB74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB74F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB74F#FFFFFF#000000##000000
##AFB74F1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF44
Deuteranopia (green-blind)
#C3B155
Tritanopia (blue-blind)
#B9ADA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb74f;
/* rgb */ color: rgb(175, 183, 79);
/* oklch */ color: oklch(75.2% 0.128 113.1);
Tailwind
colors: {
  custom: {
    50: '#c9cc84',
    500: '#afb74f',
    950: '#000000',
  },
}
SCSS
$custom: #afb74f;
$custom-light: #c9cc84;
$custom-dark: #000000;
JSON
{
  "hex": "#afb74f",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 79
  },
  "hsl": {
    "h": 64.615,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.75204,
    "c": 0.12831,
    "h": 113.1
  },
  "luminance": 0.43545
}

Semantic roles & 50–950 ramp

primary
#AFB74F
secondary
#9E9AC8
accent
#56D260
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB74F

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

Preview Lab → · Contrast checker → · Palette generator →

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