#AFA03E#AFA03E

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

Color values

HEX#AFA03E
RGBrgb(175, 160, 62)
HSLhsl(52, 48%, 46%)
HSVhsv(52, 65%, 69%)
CMYKcmyk(0%, 8.6%, 64.6%, 31.4%)
CIE-LABlab(65.44, -6.41, 51.41)
CIE-LCHlch(65.44, 51.81, 97.11°)
OKLaboklab(69.99% -0.0218 0.1168)
OKLCHoklch(69.99% 0.119 100.6)
XYZxyz(31.1208, 34.6047, 9.5966)
Luminance0.3460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA03E #3E4DAF
analogous
#AF683E #AFA03E #86AF3E
triadic
#AFA03E #3EAFA0 #A03EAF
tetradic
#AFA03E #3EAF68 #3E4DAF #AF3E86
square
#AFA03E #3EAF68 #3E4DAF #AF3E86
split-complementary
#AFA03E #3E86AF #683EAF
monochromatic
#554D1E #82772E #AFA03E #C8BA63 #D8CE90

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA03E#FFFFFF#000000##000000
##AFA03E1.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)
#AE9C32
Deuteranopia (green-blind)
#B3A143
Tritanopia (blue-blind)
#BC958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa03e;
/* rgb */ color: rgb(175, 160, 62);
/* oklch */ color: oklch(70.0% 0.119 100.6);
Tailwind
colors: {
  custom: {
    50: '#cabb78',
    500: '#afa03e',
    950: '#000000',
  },
}
SCSS
$custom: #afa03e;
$custom-light: #cabb78;
$custom-dark: #000000;
JSON
{
  "hex": "#afa03e",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 62
  },
  "hsl": {
    "h": 52.035,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.69988,
    "c": 0.11885,
    "h": 100.6
  },
  "luminance": 0.34603
}

Semantic roles & 50–950 ramp

primary
#AFA03E
secondary
#868EC3
accent
#62D751
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA03E

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

Preview Lab → · Contrast checker → · Palette generator →

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