#AFA03B#AFA03B

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

Color values

HEX#AFA03B
RGBrgb(175, 160, 59)
HSLhsl(52, 50%, 46%)
HSVhsv(52, 66%, 69%)
CMYKcmyk(0%, 8.6%, 66.3%, 31.4%)
CIE-LABlab(65.41, -6.60, 52.69)
CIE-LCHlch(65.41, 53.10, 97.14°)
OKLaboklab(69.96% -0.0227 0.1191)
OKLCHoklch(69.96% 0.121 100.8)
XYZxyz(31.0407, 34.5727, 9.1750)
Luminance0.3457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA03B #3B4AAF
analogous
#AF663B #AFA03B #84AF3B
triadic
#AFA03B #3BAFA0 #A03BAF
tetradic
#AFA03B #3BAF66 #3B4AAF #AF3B84
square
#AFA03B #3BAF66 #3B4AAF #AF3B84
split-complementary
#AFA03B #3B84AF #663BAF
monochromatic
#534C1C #81762C #AFA03B #C9BB5E #D8CE8C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA03B#FFFFFF#000000##000000
##AFA03B1.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)
#AF9B2E
Deuteranopia (green-blind)
#B3A141
Tritanopia (blue-blind)
#BC958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa03b;
/* rgb */ color: rgb(175, 160, 59);
/* oklch */ color: oklch(70.0% 0.121 100.8);
Tailwind
colors: {
  custom: {
    50: '#cabb76',
    500: '#afa03b',
    950: '#000000',
  },
}
SCSS
$custom: #afa03b;
$custom-light: #cabb76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa03b",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 59
  },
  "hsl": {
    "h": 52.241,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.6996,
    "c": 0.12122,
    "h": 100.8
  },
  "luminance": 0.34571
}

Semantic roles & 50–950 ramp

primary
#AFA03B
secondary
#838BC3
accent
#61D94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA03B

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

Preview Lab → · Contrast checker → · Palette generator →

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