#AFA844#AFA844

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

Color values

HEX#AFA844
RGBrgb(175, 168, 68)
HSLhsl(56, 44%, 48%)
HSVhsv(56, 61%, 69%)
CMYKcmyk(0%, 4%, 61.1%, 31.4%)
CIE-LABlab(67.68, -10.24, 51.16)
CIE-LCHlch(67.68, 52.17, 101.31°)
OKLaboklab(71.78% -0.032 0.1172)
OKLCHoklch(71.78% 0.121 105.3)
XYZxyz(32.7263, 37.5377, 10.9893)
Luminance0.3754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA844 #444BAF
analogous
#AF7344 #AFA844 #80AF44
triadic
#AFA844 #44AFA8 #A844AF
tetradic
#AFA844 #44AF73 #444BAF #AF4480
square
#AFA844 #44AF73 #444BAF #AF4480
split-complementary
#AFA844 #4480AF #7344AF
monochromatic
#575322 #837E33 #AFA844 #C5BF6B #D7D297

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA844#FFFFFF#000000##000000
##AFA8441.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)
#B6A239
Deuteranopia (green-blind)
#B8A74A
Tritanopia (blue-blind)
#BB9D93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa844;
/* rgb */ color: rgb(175, 168, 68);
/* oklch */ color: oklch(71.8% 0.121 105.3);
Tailwind
colors: {
  custom: {
    50: '#c9c17c',
    500: '#afa844',
    950: '#000000',
  },
}
SCSS
$custom: #afa844;
$custom-light: #c9c17c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa844",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 68
  },
  "hsl": {
    "h": 56.075,
    "s": 44.033,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71784,
    "c": 0.12147,
    "h": 105.3
  },
  "luminance": 0.37537
}

Semantic roles & 50–950 ramp

primary
#AFA844
secondary
#8C90C2
accent
#5CD454
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA844

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

Preview Lab → · Contrast checker → · Palette generator →

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