#AFA154#AFA154

#AFA154 is a light, moderate yellow. Relative luminance 0.352; OKLCH L 70.5% C 0.100 H 99.2°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA154
RGBrgb(175, 161, 84)
HSLhsl(51, 36%, 51%)
HSVhsv(51, 52%, 69%)
CMYKcmyk(0%, 8%, 52%, 31.4%)
CIE-LABlab(65.94, -5.26, 41.54)
CIE-LCHlch(65.94, 41.87, 97.21°)
OKLaboklab(70.46% -0.0159 0.0983)
OKLCHoklch(70.46% 0.1 99.2)
XYZxyz(32.0253, 35.2450, 13.5018)
Luminance0.3524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA154 #5462AF
analogous
#AF7354 #AFA154 #8FAF54
triadic
#AFA154 #54AFA1 #A154AF
tetradic
#AFA154 #54AF73 #5462AF #AF548F
square
#AFA154 #54AF73 #5462AF #AF548F
split-complementary
#AFA154 #548FAF #7354AF
monochromatic
#5D552C #877C3F #AFA154 #C3B87E #D6CFA7

Accessibility & contrast

On white

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

On black

8.05
#AFA154 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA154
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA154#FFFFFF#000000##000000
##AFA1541.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa154;
/* rgb */ color: rgb(175, 161, 84);
/* oklch */ color: oklch(70.5% 0.100 99.2);
Tailwind
colors: {
  custom: {
    50: '#c9bc86',
    500: '#afa154',
    950: '#000000',
  },
}
SCSS
$custom: #afa154;
$custom-light: #c9bc86;
$custom-dark: #000000;
JSON
{
  "hex": "#afa154",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 84
  },
  "hsl": {
    "h": 50.769,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.70457,
    "c": 0.09962,
    "h": 99.2
  },
  "luminance": 0.35244
}

Semantic roles & 50–950 ramp

primary
#AFA154
secondary
#9BA1C4
accent
#6DCC5C
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA154

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

Preview Lab → · Contrast checker → · Palette generator →

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