#AFA945#AFA945

#AFA945 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.0% C 0.122 H 105.8°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AFA945
RGBrgb(175, 169, 69)
HSLhsl(57, 43%, 48%)
HSVhsv(57, 61%, 69%)
CMYKcmyk(0%, 3.4%, 60.6%, 31.4%)
CIE-LABlab(67.96, -10.69, 51.02)
CIE-LCHlch(67.96, 52.12, 101.83°)
OKLaboklab(72.01% -0.0332 0.117)
OKLCHoklch(72.01% 0.122 105.8)
XYZxyz(32.9424, 37.9206, 11.2132)
Luminance0.3792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA945 #454BAF
analogous
#AF7445 #AFA945 #80AF45
triadic
#AFA945 #45AFA9 #A945AF
tetradic
#AFA945 #45AF74 #454BAF #AF4580
square
#AFA945 #45AF74 #454BAF #AF4580
split-complementary
#AFA945 #4580AF #7445AF
monochromatic
#575422 #837F34 #AFA945 #C5C06C #D6D398

Accessibility & contrast

On white

2.45
#AFA945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#AFA945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA945
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA945#FFFFFF#000000##000000
##AFA9451.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A33A
Deuteranopia (green-blind)
#B9A84B
Tritanopia (blue-blind)
#BB9F94
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa945;
/* rgb */ color: rgb(175, 169, 69);
/* oklch */ color: oklch(72.0% 0.122 105.8);
Tailwind
colors: {
  custom: {
    50: '#c9c27d',
    500: '#afa945',
    950: '#000000',
  },
}
SCSS
$custom: #afa945;
$custom-light: #c9c27d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa945",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 69
  },
  "hsl": {
    "h": 56.604,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.72012,
    "c": 0.12164,
    "h": 105.8
  },
  "luminance": 0.3792
}

Semantic roles & 50–950 ramp

primary
#AFA945
secondary
#8D90C2
accent
#5CD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA945

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

Preview Lab → · Contrast checker → · Palette generator →

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