#AFA246#AFA246

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

Color values

HEX#AFA246
RGBrgb(175, 162, 70)
HSLhsl(53, 43%, 48%)
HSVhsv(53, 60%, 69%)
CMYKcmyk(0%, 7.4%, 60%, 31.4%)
CIE-LABlab(66.06, -6.93, 48.46)
CIE-LCHlch(66.06, 48.95, 98.14°)
OKLaboklab(70.5% -0.0224 0.1117)
OKLCHoklch(70.5% 0.114 101.3)
XYZxyz(31.7062, 35.3981, 10.9556)
Luminance0.3540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA246 #4653AF
analogous
#AF6D46 #AFA246 #88AF46
triadic
#AFA246 #46AFA2 #A246AF
tetradic
#AFA246 #46AF6D #4653AF #AF4688
square
#AFA246 #46AF6D #4653AF #AF4688
split-complementary
#AFA246 #4688AF #6D46AF
monochromatic
#585123 #837A35 #AFA246 #C5BA6D #D6CF99

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA246#FFFFFF#000000##000000
##AFA2461.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)
#B09D3C
Deuteranopia (green-blind)
#B4A34B
Tritanopia (blue-blind)
#BB988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa246;
/* rgb */ color: rgb(175, 162, 70);
/* oklch */ color: oklch(70.5% 0.114 101.3);
Tailwind
colors: {
  custom: {
    50: '#c9bd7d',
    500: '#afa246',
    950: '#000000',
  },
}
SCSS
$custom: #afa246;
$custom-light: #c9bd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa246",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 70
  },
  "hsl": {
    "h": 52.571,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.70502,
    "c": 0.11392,
    "h": 101.3
  },
  "luminance": 0.35397
}

Semantic roles & 50–950 ramp

primary
#AFA246
secondary
#8E95C2
accent
#65D355
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA246

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

Preview Lab → · Contrast checker → · Palette generator →

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