#AFA12A#AFA12A

#AFA12A is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.0% C 0.133 H 102.3°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA12A
RGBrgb(175, 161, 42)
HSLhsl(54, 61%, 43%)
HSVhsv(54, 76%, 69%)
CMYKcmyk(0%, 8%, 76%, 31.4%)
CIE-LABlab(65.57, -8.01, 59.48)
CIE-LCHlch(65.57, 60.01, 97.67°)
OKLaboklab(70.05% -0.0285 0.1304)
OKLCHoklch(70.05% 0.133 102.3)
XYZxyz(30.8434, 34.7722, 7.2771)
Luminance0.3477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA12A #2A38AF
analogous
#AF5E2A #AFA12A #7BAF2A
triadic
#AFA12A #2AAFA1 #A12AAF
tetradic
#AFA12A #2AAF5E #2A38AF #AF2A7B
square
#AFA12A #2AAF5E #2A38AF #AF2A7B
split-complementary
#AFA12A #2A7BAF #5E2AAF
monochromatic
#4C4612 #7E741E #AFA12A #D2C344 #DED375

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA12A#FFFFFF#000000##000000
##AFA12A1.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)
#B09C11
Deuteranopia (green-blind)
#B4A233
Tritanopia (blue-blind)
#BD958A
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa12a;
/* rgb */ color: rgb(175, 161, 42);
/* oklch */ color: oklch(70.0% 0.133 102.3);
Tailwind
colors: {
  custom: {
    50: '#cbbc6d',
    500: '#afa12a',
    950: '#000000',
  },
}
SCSS
$custom: #afa12a;
$custom-light: #cbbc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa12a",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 42
  },
  "hsl": {
    "h": 53.684,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.70047,
    "c": 0.13345,
    "h": 102.3
  },
  "luminance": 0.34771
}

Semantic roles & 50–950 ramp

primary
#AFA12A
secondary
#6F78C6
accent
#54E443
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AFA12A

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

Preview Lab → · Contrast checker → · Palette generator →

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