#AFA741#AFA741

#AFA741 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.123 H 104.8°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#AFA741
RGBrgb(175, 167, 65)
HSLhsl(56, 46%, 47%)
HSVhsv(56, 63%, 69%)
CMYKcmyk(0%, 4.6%, 62.9%, 31.4%)
CIE-LABlab(67.38, -9.92, 52.16)
CIE-LCHlch(67.38, 53.10, 100.76°)
OKLaboklab(71.54% -0.0315 0.1189)
OKLCHoklch(71.54% 0.123 104.8)
XYZxyz(32.4532, 37.1342, 10.4581)
Luminance0.3713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA741 #4149AF
analogous
#AF7041 #AFA741 #80AF41
triadic
#AFA741 #41AFA7 #A741AF
tetradic
#AFA741 #41AF70 #4149AF #AF4180
square
#AFA741 #41AF70 #4149AF #AF4180
split-complementary
#AFA741 #4180AF #7041AF
monochromatic
#565220 #827C30 #AFA741 #C6BF67 #D7D293

Accessibility & contrast

On white

2.49
#AFA741 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#AFA741 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA741
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA741#FFFFFF#000000##000000
##AFA7411.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A135
Deuteranopia (green-blind)
#B8A647
Tritanopia (blue-blind)
#BB9C91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa741;
/* rgb */ color: rgb(175, 167, 65);
/* oklch */ color: oklch(71.5% 0.123 104.8);
Tailwind
colors: {
  custom: {
    50: '#cac07a',
    500: '#afa741',
    950: '#000000',
  },
}
SCSS
$custom: #afa741;
$custom-light: #cac07a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa741",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 65
  },
  "hsl": {
    "h": 55.636,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71536,
    "c": 0.12297,
    "h": 104.8
  },
  "luminance": 0.37133
}

Semantic roles & 50–950 ramp

primary
#AFA741
secondary
#898DC2
accent
#5CD552
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA741

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

Preview Lab → · Contrast checker → · Palette generator →

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