#AFB45D#AFB45D

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

Color values

HEX#AFB45D
RGBrgb(175, 180, 93)
HSLhsl(63, 37%, 54%)
HSVhsv(63, 48%, 71%)
CMYKcmyk(2.8%, 0%, 48.3%, 29.4%)
CIE-LABlab(71.25, -14.38, 43.43)
CIE-LCHlch(71.25, 45.75, 108.32°)
OKLaboklab(74.71% -0.0411 0.1033)
OKLCHoklch(74.71% 0.111 111.7)
XYZxyz(35.9769, 42.5475, 16.6711)
Luminance0.4255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB45D #625DB4
analogous
#B48D5D #AFB45D #83B45D
triadic
#AFB45D #5DAFB4 #B45DAF
tetradic
#AFB45D #5DB48D #625DB4 #B45D83
square
#AFB45D #5DB48D #625DB4 #B45D83
split-complementary
#AFB45D #5D83B4 #8D5DB4
monochromatic
#646730 #8C9143 #AFB45D #C4C787 #D8DBB1

Accessibility & contrast

On white

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

On black

9.51
#AFB45D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB45D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB45D#FFFFFF#000000##000000
##AFB45D1.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb45d;
/* rgb */ color: rgb(175, 180, 93);
/* oklch */ color: oklch(74.7% 0.111 111.7);
Tailwind
colors: {
  custom: {
    50: '#c8ca8d',
    500: '#afb45d',
    950: '#000000',
  },
}
SCSS
$custom: #afb45d;
$custom-light: #c8ca8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb45d",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 93
  },
  "hsl": {
    "h": 63.448,
    "s": 36.709,
    "l": 53.529
  },
  "oklch": {
    "l": 0.74712,
    "c": 0.11115,
    "h": 111.7
  },
  "luminance": 0.42547
}

Semantic roles & 50–950 ramp

primary
#AFB45D
secondary
#A6A4C9
accent
#5BCD62
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB45D

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

Preview Lab → · Contrast checker → · Palette generator →

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