#AFB45F#AFB45F

#AFB45F is a light, moderate yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.109 H 111.7°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#AFB45F
RGBrgb(175, 180, 95)
HSLhsl(64, 36%, 54%)
HSVhsv(64, 47%, 71%)
CMYKcmyk(2.8%, 0%, 47.2%, 29.4%)
CIE-LABlab(71.27, -14.18, 42.47)
CIE-LCHlch(71.27, 44.78, 108.47°)
OKLaboklab(74.74% -0.0404 0.1013)
OKLCHoklch(74.74% 0.109 111.7)
XYZxyz(36.0666, 42.5834, 17.1437)
Luminance0.4258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB45F #645FB4
analogous
#B48F5F #AFB45F #85B45F
triadic
#AFB45F #5FAFB4 #B45FAF
tetradic
#AFB45F #5FB48F #645FB4 #B45F85
square
#AFB45F #5FB48F #645FB4 #B45F85
split-complementary
#AFB45F #5F85B4 #8F5FB4
monochromatic
#656831 #8D9244 #AFB45F #C4C889 #D9DBB2

Accessibility & contrast

On white

2.21
#AFB45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#AFB45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB45F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB45F#FFFFFF#000000##000000
##AFB45F1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAD58
Deuteranopia (green-blind)
#C0B063
Tritanopia (blue-blind)
#B9ABA0
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb45f;
/* rgb */ color: rgb(175, 180, 95);
/* oklch */ color: oklch(74.7% 0.109 111.7);
Tailwind
colors: {
  custom: {
    50: '#c8ca8e',
    500: '#afb45f',
    950: '#000000',
  },
}
SCSS
$custom: #afb45f;
$custom-light: #c8ca8e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb45f",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 95
  },
  "hsl": {
    "h": 63.529,
    "s": 36.17,
    "l": 53.922
  },
  "oklch": {
    "l": 0.7474,
    "c": 0.10906,
    "h": 111.7
  },
  "luminance": 0.42583
}

Semantic roles & 50–950 ramp

primary
#AFB45F
secondary
#A7A5CA
accent
#5CCC62
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB45F

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

Preview Lab → · Contrast checker → · Palette generator →

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