#AFA12C#AFA12C

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

Color values

HEX#AFA12C
RGBrgb(175, 161, 44)
HSLhsl(54, 60%, 43%)
HSVhsv(54, 75%, 69%)
CMYKcmyk(0%, 8%, 74.9%, 31.4%)
CIE-LABlab(65.58, -7.92, 58.78)
CIE-LCHlch(65.58, 59.31, 97.67°)
OKLaboklab(70.06% -0.0281 0.1293)
OKLCHoklch(70.06% 0.132 102.3)
XYZxyz(30.8801, 34.7869, 7.4703)
Luminance0.3479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA12C #2C3AAF
analogous
#AF602C #AFA12C #7BAF2C
triadic
#AFA12C #2CAFA1 #A12CAF
tetradic
#AFA12C #2CAF60 #2C3AAF #AF2C7B
square
#AFA12C #2CAF60 #2C3AAF #AF2C7B
split-complementary
#AFA12C #2C7BAF #602CAF
monochromatic
#4D4713 #7E7420 #AFA12C #D1C247 #DDD278

Accessibility & contrast

On white

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

On black

7.96
#AFA12C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA12C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA12C#FFFFFF#000000##000000
##AFA12C1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C15
Deuteranopia (green-blind)
#B4A234
Tritanopia (blue-blind)
#BD958A
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa12c;
/* rgb */ color: rgb(175, 161, 44);
/* oklch */ color: oklch(70.1% 0.132 102.3);
Tailwind
colors: {
  custom: {
    50: '#cbbc6e',
    500: '#afa12c',
    950: '#000000',
  },
}
SCSS
$custom: #afa12c;
$custom-light: #cbbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa12c",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 44
  },
  "hsl": {
    "h": 53.588,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.7006,
    "c": 0.13229,
    "h": 102.3
  },
  "luminance": 0.34786
}

Semantic roles & 50–950 ramp

primary
#AFA12C
secondary
#727BC5
accent
#56E345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AFA12C

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

Preview Lab → · Contrast checker → · Palette generator →

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