#AFA03F#AFA03F

#AFA03F is a light, moderate yellow. Relative luminance 0.346; OKLCH L 70.0% C 0.118 H 100.5°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#AFA03F
RGBrgb(175, 160, 63)
HSLhsl(52, 47%, 47%)
HSVhsv(52, 64%, 69%)
CMYKcmyk(0%, 8.6%, 64%, 31.4%)
CIE-LABlab(65.45, -6.35, 50.97)
CIE-LCHlch(65.45, 51.37, 97.10°)
OKLaboklab(70% -0.0215 0.1161)
OKLCHoklch(70% 0.118 100.5)
XYZxyz(31.1485, 34.6158, 9.7424)
Luminance0.3461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA03F #3F4EAF
analogous
#AF683F #AFA03F #86AF3F
triadic
#AFA03F #3FAFA0 #A03FAF
tetradic
#AFA03F #3FAF68 #3F4EAF #AF3F86
square
#AFA03F #3FAF68 #3F4EAF #AF3F86
split-complementary
#AFA03F #3F86AF #683FAF
monochromatic
#554E1F #82772F #AFA03F #C7BA64 #D7CE91

Accessibility & contrast

On white

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

On black

7.92
#AFA03F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA03F
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA03F#FFFFFF#000000##000000
##AFA03F1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa03f;
/* rgb */ color: rgb(175, 160, 63);
/* oklch */ color: oklch(70.0% 0.118 100.5);
Tailwind
colors: {
  custom: {
    50: '#cabb78',
    500: '#afa03f',
    950: '#000000',
  },
}
SCSS
$custom: #afa03f;
$custom-light: #cabb78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa03f",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 63
  },
  "hsl": {
    "h": 51.964,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.69998,
    "c": 0.11805,
    "h": 100.5
  },
  "luminance": 0.34614
}

Semantic roles & 50–950 ramp

primary
#AFA03F
secondary
#878FC3
accent
#63D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA03F

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

Preview Lab → · Contrast checker → · Palette generator →

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