#AFA03A#AFA03A

#AFA03A is a light, vivid yellow. Relative luminance 0.346; OKLCH L 70.0% C 0.122 H 100.9°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#AFA03A
RGBrgb(175, 160, 58)
HSLhsl(52, 50%, 46%)
HSVhsv(52, 67%, 69%)
CMYKcmyk(0%, 8.6%, 66.9%, 31.4%)
CIE-LABlab(65.41, -6.66, 53.11)
CIE-LCHlch(65.41, 53.52, 97.15°)
OKLaboklab(69.95% -0.023 0.1198)
OKLCHoklch(69.95% 0.122 100.9)
XYZxyz(31.0150, 34.5624, 9.0397)
Luminance0.3456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA03A #3A49AF
analogous
#AF653A #AFA03A #83AF3A
triadic
#AFA03A #3AAFA0 #A03AAF
tetradic
#AFA03A #3AAF65 #3A49AF #AF3A83
square
#AFA03A #3AAF65 #3A49AF #AF3A83
split-complementary
#AFA03A #3A83AF #653AAF
monochromatic
#534C1C #81762B #AFA03A #C9BB5D #D9CF8B

Accessibility & contrast

On white

2.65
#AFA03A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#AFA03A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA03A
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA03A#FFFFFF#000000##000000
##AFA03A1.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B2D
Deuteranopia (green-blind)
#B3A140
Tritanopia (blue-blind)
#BC958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa03a;
/* rgb */ color: rgb(175, 160, 58);
/* oklch */ color: oklch(70.0% 0.122 100.9);
Tailwind
colors: {
  custom: {
    50: '#cabb76',
    500: '#afa03a',
    950: '#000000',
  },
}
SCSS
$custom: #afa03a;
$custom-light: #cabb76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa03a",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 58
  },
  "hsl": {
    "h": 52.308,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69951,
    "c": 0.12198,
    "h": 100.9
  },
  "luminance": 0.34561
}

Semantic roles & 50–950 ramp

primary
#AFA03A
secondary
#828AC3
accent
#60DA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA03A

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

Preview Lab → · Contrast checker → · Palette generator →

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