#AFA04B#AFA04B

#AFA04B is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.1% C 0.108 H 99.4°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA04B
RGBrgb(175, 160, 75)
HSLhsl(51, 40%, 49%)
HSVhsv(51, 57%, 69%)
CMYKcmyk(0%, 8.6%, 57.1%, 31.4%)
CIE-LABlab(65.57, -5.48, 45.53)
CIE-LCHlch(65.57, 45.86, 96.87°)
OKLaboklab(70.13% -0.0176 0.1061)
OKLCHoklch(70.13% 0.108 99.4)
XYZxyz(31.5211, 34.7648, 11.7052)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA04B #4B5AAF
analogous
#AF6E4B #AFA04B #8CAF4B
triadic
#AFA04B #4BAFA0 #A04BAF
tetradic
#AFA04B #4BAF6E #4B5AAF #AF4B8C
square
#AFA04B #4BAF6E #4B5AAF #AF4B8C
split-complementary
#AFA04B #4B8CAF #6E4BAF
monochromatic
#595226 #847939 #AFA04B #C3B774 #D6CD9F

Accessibility & contrast

On white

2.64
#AFA04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#AFA04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA04B
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA04B#FFFFFF#000000##000000
##AFA04B1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C43
Deuteranopia (green-blind)
#B2A24F
Tritanopia (blue-blind)
#BB968D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa04b;
/* rgb */ color: rgb(175, 160, 75);
/* oklch */ color: oklch(70.1% 0.108 99.4);
Tailwind
colors: {
  custom: {
    50: '#c9bb80',
    500: '#afa04b',
    950: '#000000',
  },
}
SCSS
$custom: #afa04b;
$custom-light: #c9bb80;
$custom-dark: #000000;
JSON
{
  "hex": "#afa04b",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 75
  },
  "hsl": {
    "h": 51,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70128,
    "c": 0.10751,
    "h": 99.4
  },
  "luminance": 0.34764
}

Semantic roles & 50–950 ramp

primary
#AFA04B
secondary
#939AC2
accent
#6AD058
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#13110A
muted
#82807C

Preview Lab

Preview with #AFA04B

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

Preview Lab → · Contrast checker → · Palette generator →

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