#AFA13B#AFA13B

#AFA13B is a light, vivid yellow. Relative luminance 0.349; OKLCH L 70.2% C 0.122 H 101.5°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#AFA13B
RGBrgb(175, 161, 59)
HSLhsl(53, 50%, 46%)
HSVhsv(53, 66%, 69%)
CMYKcmyk(0%, 8%, 66.3%, 31.4%)
CIE-LABlab(65.69, -7.13, 52.97)
CIE-LCHlch(65.69, 53.45, 97.67°)
OKLaboklab(70.18% -0.0242 0.1197)
OKLCHoklch(70.18% 0.122 101.5)
XYZxyz(31.2148, 34.9208, 9.2330)
Luminance0.3492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA13B #3B49AF
analogous
#AF673B #AFA13B #83AF3B
triadic
#AFA13B #3BAFA1 #A13BAF
tetradic
#AFA13B #3BAF67 #3B49AF #AF3B83
square
#AFA13B #3BAF67 #3B49AF #AF3B83
split-complementary
#AFA13B #3B83AF #673BAF
monochromatic
#534D1C #81772C #AFA13B #C9BC5E #D8CF8C

Accessibility & contrast

On white

2.63
#AFA13B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#AFA13B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA13B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA13B#FFFFFF#000000##000000
##AFA13B1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C2E
Deuteranopia (green-blind)
#B4A241
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa13b;
/* rgb */ color: rgb(175, 161, 59);
/* oklch */ color: oklch(70.2% 0.122 101.5);
Tailwind
colors: {
  custom: {
    50: '#cabc76',
    500: '#afa13b',
    950: '#000000',
  },
}
SCSS
$custom: #afa13b;
$custom-light: #cabc76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa13b",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 59
  },
  "hsl": {
    "h": 52.759,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70176,
    "c": 0.1221,
    "h": 101.5
  },
  "luminance": 0.34919
}

Semantic roles & 50–950 ramp

primary
#AFA13B
secondary
#838BC3
accent
#5FD94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA13B

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

Preview Lab → · Contrast checker → · Palette generator →

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