#AFB047#AFB047

#AFB047 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.6% C 0.127 H 109.7°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#AFB047
RGBrgb(175, 176, 71)
HSLhsl(61, 43%, 48%)
HSVhsv(61, 60%, 69%)
CMYKcmyk(0.6%, 0%, 59.7%, 31%)
CIE-LABlab(69.91, -14.17, 52.25)
CIE-LCHlch(69.91, 54.14, 105.18°)
OKLaboklab(73.57% -0.0429 0.1199)
OKLCHoklch(73.57% 0.127 109.7)
XYZxyz(34.3428, 40.6205, 11.9915)
Luminance0.4062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB047 #4847B0
analogous
#B07C47 #AFB047 #7AB047
triadic
#AFB047 #47AFB0 #B047AF
tetradic
#AFB047 #47B07C #4847B0 #B0477A
square
#AFB047 #47B07C #4847B0 #B0477A
split-complementary
#AFB047 #477AB0 #7C47B0
monochromatic
#585924 #848435 #AFB047 #C4C56F #D6D79B

Accessibility & contrast

On white

2.30
#AFB047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#AFB047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB047
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB047#FFFFFF#000000##000000
##AFB0471.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA93B
Deuteranopia (green-blind)
#BEAC4D
Tritanopia (blue-blind)
#BAA69A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb047;
/* rgb */ color: rgb(175, 176, 71);
/* oklch */ color: oklch(73.6% 0.127 109.7);
Tailwind
colors: {
  custom: {
    50: '#c9c77f',
    500: '#afb047',
    950: '#000000',
  },
}
SCSS
$custom: #afb047;
$custom-light: #c9c77f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb047",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 71
  },
  "hsl": {
    "h": 60.571,
    "s": 42.51,
    "l": 48.431
  },
  "oklch": {
    "l": 0.7357,
    "c": 0.12735,
    "h": 109.7
  },
  "luminance": 0.4062
}

Semantic roles & 50–950 ramp

primary
#AFB047
secondary
#9090C3
accent
#56D257
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFB047

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

Preview Lab → · Contrast checker → · Palette generator →

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