#AFA13D#AFA13D

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

Color values

HEX#AFA13D
RGBrgb(175, 161, 61)
HSLhsl(53, 48%, 46%)
HSVhsv(53, 65%, 69%)
CMYKcmyk(0%, 8%, 65.1%, 31.4%)
CIE-LABlab(65.70, -7.01, 52.13)
CIE-LCHlch(65.70, 52.60, 97.66°)
OKLaboklab(70.19% -0.0236 0.1182)
OKLCHoklch(70.19% 0.121 101.3)
XYZxyz(31.2676, 34.9419, 9.5114)
Luminance0.3494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA13D #3D4BAF
analogous
#AF683D #AFA13D #84AF3D
triadic
#AFA13D #3DAFA1 #A13DAF
tetradic
#AFA13D #3DAF68 #3D4BAF #AF3D84
square
#AFA13D #3DAF68 #3D4BAF #AF3D84
split-complementary
#AFA13D #3D84AF #683DAF
monochromatic
#544E1D #82772D #AFA13D #C8BB61 #D8CF8F

Accessibility & contrast

On white

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

On black

7.99
#AFA13D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA13D
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA13D#FFFFFF#000000##000000
##AFA13D1.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa13d;
/* rgb */ color: rgb(175, 161, 61);
/* oklch */ color: oklch(70.2% 0.121 101.3);
Tailwind
colors: {
  custom: {
    50: '#cabc77',
    500: '#afa13d',
    950: '#000000',
  },
}
SCSS
$custom: #afa13d;
$custom-light: #cabc77;
$custom-dark: #000000;
JSON
{
  "hex": "#afa13d",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 61
  },
  "hsl": {
    "h": 52.632,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70194,
    "c": 0.12054,
    "h": 101.3
  },
  "luminance": 0.34941
}

Semantic roles & 50–950 ramp

primary
#AFA13D
secondary
#858DC3
accent
#61D850
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA13D

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

Preview Lab → · Contrast checker → · Palette generator →

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