#AFA03D#AFA03D

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

Color values

HEX#AFA03D
RGBrgb(175, 160, 61)
HSLhsl(52, 48%, 46%)
HSVhsv(52, 65%, 69%)
CMYKcmyk(0%, 8.6%, 65.1%, 31.4%)
CIE-LABlab(65.43, -6.48, 51.84)
CIE-LCHlch(65.43, 52.24, 97.12°)
OKLaboklab(69.98% -0.0221 0.1176)
OKLCHoklch(69.98% 0.12 100.7)
XYZxyz(31.0936, 34.5938, 9.4534)
Luminance0.3459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA03D #3D4CAF
analogous
#AF673D #AFA03D #85AF3D
triadic
#AFA03D #3DAFA0 #A03DAF
tetradic
#AFA03D #3DAF67 #3D4CAF #AF3D85
square
#AFA03D #3DAF67 #3D4CAF #AF3D85
split-complementary
#AFA03D #3D85AF #673DAF
monochromatic
#544D1D #82772D #AFA03D #C8BA61 #D8CE8F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA03D#FFFFFF#000000##000000
##AFA03D1.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)
#AE9C31
Deuteranopia (green-blind)
#B3A142
Tritanopia (blue-blind)
#BC958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa03d;
/* rgb */ color: rgb(175, 160, 61);
/* oklch */ color: oklch(70.0% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#cabb77',
    500: '#afa03d',
    950: '#000000',
  },
}
SCSS
$custom: #afa03d;
$custom-light: #cabb77;
$custom-dark: #000000;
JSON
{
  "hex": "#afa03d",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 61
  },
  "hsl": {
    "h": 52.105,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.69978,
    "c": 0.11966,
    "h": 100.7
  },
  "luminance": 0.34592
}

Semantic roles & 50–950 ramp

primary
#AFA03D
secondary
#858DC3
accent
#62D850
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA03D

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

Preview Lab → · Contrast checker → · Palette generator →

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