#AFA245#AFA245

#AFA245 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.115 H 101.4°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#AFA245
RGBrgb(175, 162, 69)
HSLhsl(53, 43%, 48%)
HSVhsv(53, 61%, 69%)
CMYKcmyk(0%, 7.4%, 60.6%, 31.4%)
CIE-LABlab(66.05, -7.00, 48.91)
CIE-LCHlch(66.05, 49.41, 98.15°)
OKLaboklab(70.49% -0.0227 0.1125)
OKLCHoklch(70.49% 0.115 101.4)
XYZxyz(31.6749, 35.3855, 10.7907)
Luminance0.3538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA245 #4552AF
analogous
#AF6D45 #AFA245 #87AF45
triadic
#AFA245 #45AFA2 #A245AF
tetradic
#AFA245 #45AF6D #4552AF #AF4587
square
#AFA245 #45AF6D #4552AF #AF4587
split-complementary
#AFA245 #4587AF #6D45AF
monochromatic
#575122 #837934 #AFA245 #C5BA6C #D6CF98

Accessibility & contrast

On white

2.60
#AFA245 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#AFA245 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA245
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA245#FFFFFF#000000##000000
##AFA2451.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D3B
Deuteranopia (green-blind)
#B4A34A
Tritanopia (blue-blind)
#BB978E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa245;
/* rgb */ color: rgb(175, 162, 69);
/* oklch */ color: oklch(70.5% 0.115 101.4);
Tailwind
colors: {
  custom: {
    50: '#c9bd7c',
    500: '#afa245',
    950: '#000000',
  },
}
SCSS
$custom: #afa245;
$custom-light: #c9bd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa245",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 69
  },
  "hsl": {
    "h": 52.642,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70491,
    "c": 0.11479,
    "h": 101.4
  },
  "luminance": 0.35384
}

Semantic roles & 50–950 ramp

primary
#AFA245
secondary
#8D94C2
accent
#64D355
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA245

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

Preview Lab → · Contrast checker → · Palette generator →

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