#AFA150#AFA150

#AFA150 is a light, moderate yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.104 H 99.7°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AFA150
RGBrgb(175, 161, 80)
HSLhsl(51, 37%, 50%)
HSVhsv(51, 54%, 69%)
CMYKcmyk(0%, 8%, 54.3%, 31.4%)
CIE-LABlab(65.89, -5.61, 43.47)
CIE-LCHlch(65.89, 43.83, 97.35°)
OKLaboklab(70.4% -0.0174 0.1022)
OKLCHoklch(70.4% 0.104 99.7)
XYZxyz(31.8731, 35.1841, 12.7002)
Luminance0.3518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA150 #505EAF
analogous
#AF7250 #AFA150 #8DAF50
triadic
#AFA150 #50AFA1 #A150AF
tetradic
#AFA150 #50AF72 #505EAF #AF508D
square
#AFA150 #50AF72 #505EAF #AF508D
split-complementary
#AFA150 #508DAF #7250AF
monochromatic
#5B542A #857A3D #AFA150 #C2B87A #D5CEA4

Accessibility & contrast

On white

2.61
#AFA150 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#AFA150 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA150
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA150#FFFFFF#000000##000000
##AFA1501.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D48
Deuteranopia (green-blind)
#B2A254
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa150;
/* rgb */ color: rgb(175, 161, 80);
/* oklch */ color: oklch(70.4% 0.104 99.7);
Tailwind
colors: {
  custom: {
    50: '#c9bc83',
    500: '#afa150',
    950: '#000000',
  },
}
SCSS
$custom: #afa150;
$custom-light: #c9bc83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa150",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 80
  },
  "hsl": {
    "h": 51.158,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.70404,
    "c": 0.10362,
    "h": 99.7
  },
  "luminance": 0.35183
}

Semantic roles & 50–950 ramp

primary
#AFA150
secondary
#989EC3
accent
#6BCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA150

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

Preview Lab → · Contrast checker → · Palette generator →

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