#AFA146#AFA146

#AFA146 is a light, moderate yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.113 H 100.6°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#AFA146
RGBrgb(175, 161, 70)
HSLhsl(52, 43%, 48%)
HSVhsv(52, 60%, 69%)
CMYKcmyk(0%, 8%, 60%, 31.4%)
CIE-LABlab(65.79, -6.40, 48.15)
CIE-LCHlch(65.79, 48.58, 97.57°)
OKLaboklab(70.29% -0.0208 0.1111)
OKLCHoklch(70.29% 0.113 100.6)
XYZxyz(31.5307, 35.0472, 10.8971)
Luminance0.3505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA146 #4654AF
analogous
#AF6C46 #AFA146 #88AF46
triadic
#AFA146 #46AFA1 #A146AF
tetradic
#AFA146 #46AF6C #4654AF #AF4688
square
#AFA146 #46AF6C #4654AF #AF4688
split-complementary
#AFA146 #4688AF #6C46AF
monochromatic
#585123 #837935 #AFA146 #C5B96D #D6CE99

Accessibility & contrast

On white

2.62
#AFA146 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#AFA146 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA146
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA146#FFFFFF#000000##000000
##AFA1461.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D3C
Deuteranopia (green-blind)
#B3A24B
Tritanopia (blue-blind)
#BC968D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa146;
/* rgb */ color: rgb(175, 161, 70);
/* oklch */ color: oklch(70.3% 0.113 100.6);
Tailwind
colors: {
  custom: {
    50: '#c9bc7d',
    500: '#afa146',
    950: '#000000',
  },
}
SCSS
$custom: #afa146;
$custom-light: #c9bc7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa146",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 70
  },
  "hsl": {
    "h": 52,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.70286,
    "c": 0.11299,
    "h": 100.6
  },
  "luminance": 0.35046
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA146

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

Preview Lab → · Contrast checker → · Palette generator →

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