#AFA241#AFA241

#AFA241 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.118 H 101.7°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AFA241
RGBrgb(175, 162, 65)
HSLhsl(53, 46%, 47%)
HSVhsv(53, 63%, 69%)
CMYKcmyk(0%, 7.4%, 62.9%, 31.4%)
CIE-LABlab(66.01, -7.28, 50.69)
CIE-LCHlch(66.01, 51.21, 98.17°)
OKLaboklab(70.45% -0.024 0.1158)
OKLCHoklch(70.45% 0.118 101.7)
XYZxyz(31.5549, 35.3375, 10.1587)
Luminance0.3534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA241 #414EAF
analogous
#AF6B41 #AFA241 #85AF41
triadic
#AFA241 #41AFA2 #A241AF
tetradic
#AFA241 #41AF6B #414EAF #AF4185
square
#AFA241 #41AF6B #414EAF #AF4185
split-complementary
#AFA241 #4185AF #6B41AF
monochromatic
#564F20 #827930 #AFA241 #C6BB67 #D7CF93

Accessibility & contrast

On white

2.60
#AFA241 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AFA241 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA241
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA241#FFFFFF#000000##000000
##AFA2411.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D36
Deuteranopia (green-blind)
#B4A346
Tritanopia (blue-blind)
#BC978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa241;
/* rgb */ color: rgb(175, 162, 65);
/* oklch */ color: oklch(70.4% 0.118 101.7);
Tailwind
colors: {
  custom: {
    50: '#cabd7a',
    500: '#afa241',
    950: '#000000',
  },
}
SCSS
$custom: #afa241;
$custom-light: #cabd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa241",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 65
  },
  "hsl": {
    "h": 52.909,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.70449,
    "c": 0.1182,
    "h": 101.7
  },
  "luminance": 0.35336
}

Semantic roles & 50–950 ramp

primary
#AFA241
secondary
#8990C2
accent
#62D552
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA241

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

Preview Lab → · Contrast checker → · Palette generator →

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