#AFA845#AFA845

#AFA845 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.121 H 105.2°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#AFA845
RGBrgb(175, 168, 69)
HSLhsl(56, 43%, 48%)
HSVhsv(56, 61%, 69%)
CMYKcmyk(0%, 4%, 60.6%, 31.4%)
CIE-LABlab(67.69, -10.17, 50.72)
CIE-LCHlch(67.69, 51.72, 101.33°)
OKLaboklab(71.79% -0.0317 0.1164)
OKLCHoklch(71.79% 0.121 105.2)
XYZxyz(32.7571, 37.5500, 11.1514)
Luminance0.3755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA845 #454CAF
analogous
#AF7345 #AFA845 #81AF45
triadic
#AFA845 #45AFA8 #A845AF
tetradic
#AFA845 #45AF73 #454CAF #AF4581
square
#AFA845 #45AF73 #454CAF #AF4581
split-complementary
#AFA845 #4581AF #7345AF
monochromatic
#575422 #837E34 #AFA845 #C5BF6C #D6D298

Accessibility & contrast

On white

2.47
#AFA845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#AFA845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA845
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA845#FFFFFF#000000##000000
##AFA8451.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A23A
Deuteranopia (green-blind)
#B8A74A
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa845;
/* rgb */ color: rgb(175, 168, 69);
/* oklch */ color: oklch(71.8% 0.121 105.2);
Tailwind
colors: {
  custom: {
    50: '#c9c17d',
    500: '#afa845',
    950: '#000000',
  },
}
SCSS
$custom: #afa845;
$custom-light: #c9c17d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa845",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 69
  },
  "hsl": {
    "h": 56.038,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.71794,
    "c": 0.12063,
    "h": 105.2
  },
  "luminance": 0.37549
}

Semantic roles & 50–950 ramp

primary
#AFA845
secondary
#8D91C2
accent
#5DD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA845

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

Preview Lab → · Contrast checker → · Palette generator →

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