#AFA247#AFA247

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

Color values

HEX#AFA247
RGBrgb(175, 162, 71)
HSLhsl(53, 42%, 48%)
HSVhsv(53, 59%, 69%)
CMYKcmyk(0%, 7.4%, 59.4%, 31.4%)
CIE-LABlab(66.07, -6.85, 48.00)
CIE-LCHlch(66.07, 48.49, 98.13°)
OKLaboklab(70.51% -0.022 0.1109)
OKLCHoklch(70.51% 0.113 101.2)
XYZxyz(31.7380, 35.4108, 11.1232)
Luminance0.3541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA247 #4754AF
analogous
#AF6E47 #AFA247 #88AF47
triadic
#AFA247 #47AFA2 #A247AF
tetradic
#AFA247 #47AF6E #4754AF #AF4788
square
#AFA247 #47AF6E #4754AF #AF4788
split-complementary
#AFA247 #4788AF #6E47AF
monochromatic
#585124 #837A35 #AFA247 #C4BA6F #D6CF9A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA247#FFFFFF#000000##000000
##AFA2471.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)
#B09D3D
Deuteranopia (green-blind)
#B4A34C
Tritanopia (blue-blind)
#BB988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa247;
/* rgb */ color: rgb(175, 162, 71);
/* oklch */ color: oklch(70.5% 0.113 101.2);
Tailwind
colors: {
  custom: {
    50: '#c9bd7e',
    500: '#afa247',
    950: '#000000',
  },
}
SCSS
$custom: #afa247;
$custom-light: #c9bd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa247",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 71
  },
  "hsl": {
    "h": 52.5,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.70513,
    "c": 0.11303,
    "h": 101.2
  },
  "luminance": 0.3541
}

Semantic roles & 50–950 ramp

primary
#AFA247
secondary
#8F96C2
accent
#65D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA247

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

Preview Lab → · Contrast checker → · Palette generator →

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