#AFA754#AFA754

#AFA754 is a light, moderate yellow. Relative luminance 0.374; OKLCH L 71.8% C 0.106 H 103.8°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AFA754
RGBrgb(175, 167, 84)
HSLhsl(55, 36%, 51%)
HSVhsv(55, 52%, 69%)
CMYKcmyk(0%, 4.6%, 52%, 31.4%)
CIE-LABlab(67.57, -8.44, 43.48)
CIE-LCHlch(67.57, 44.29, 100.99°)
OKLaboklab(71.75% -0.0251 0.1026)
OKLCHoklch(71.75% 0.106 103.8)
XYZxyz(33.0991, 37.3925, 13.8597)
Luminance0.3739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA754 #545CAF
analogous
#AF7954 #AFA754 #89AF54
triadic
#AFA754 #54AFA7 #A754AF
tetradic
#AFA754 #54AF79 #545CAF #AF5489
square
#AFA754 #54AF79 #545CAF #AF5489
split-complementary
#AFA754 #5489AF #7954AF
monochromatic
#5D592C #87803F #AFA754 #C3BC7E #D6D2A7

Accessibility & contrast

On white

2.48
#AFA754 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AFA754 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA754
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA754#FFFFFF#000000##000000
##AFA7541.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A24C
Deuteranopia (green-blind)
#B6A758
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa754;
/* rgb */ color: rgb(175, 167, 84);
/* oklch */ color: oklch(71.8% 0.106 103.8);
Tailwind
colors: {
  custom: {
    50: '#c9c086',
    500: '#afa754',
    950: '#000000',
  },
}
SCSS
$custom: #afa754;
$custom-light: #c9c086;
$custom-dark: #000000;
JSON
{
  "hex": "#afa754",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 84
  },
  "hsl": {
    "h": 54.725,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.71751,
    "c": 0.1056,
    "h": 103.8
  },
  "luminance": 0.37391
}

Semantic roles & 50–950 ramp

primary
#AFA754
secondary
#9B9FC4
accent
#65CC5C
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA754

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

Preview Lab → · Contrast checker → · Palette generator →

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