#AFA841#AFA841

#AFA841 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.124 H 105.4°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AFA841
RGBrgb(175, 168, 65)
HSLhsl(56, 46%, 47%)
HSVhsv(56, 63%, 69%)
CMYKcmyk(0%, 4%, 62.9%, 31.4%)
CIE-LABlab(67.65, -10.44, 52.46)
CIE-LCHlch(67.65, 53.48, 101.26°)
OKLaboklab(71.75% -0.0329 0.1195)
OKLCHoklch(71.75% 0.124 105.4)
XYZxyz(32.6371, 37.5020, 10.5194)
Luminance0.3750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA841 #4148AF
analogous
#AF7141 #AFA841 #7FAF41
triadic
#AFA841 #41AFA8 #A841AF
tetradic
#AFA841 #41AF71 #4148AF #AF417F
square
#AFA841 #41AF71 #4148AF #AF417F
split-complementary
#AFA841 #417FAF #7141AF
monochromatic
#565220 #827D30 #AFA841 #C6C067 #D7D393

Accessibility & contrast

On white

2.47
#AFA841 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#AFA841 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA841
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA841#FFFFFF#000000##000000
##AFA8411.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A235
Deuteranopia (green-blind)
#B9A747
Tritanopia (blue-blind)
#BB9D92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa841;
/* rgb */ color: rgb(175, 168, 65);
/* oklch */ color: oklch(71.8% 0.124 105.4);
Tailwind
colors: {
  custom: {
    50: '#cac17a',
    500: '#afa841',
    950: '#000000',
  },
}
SCSS
$custom: #afa841;
$custom-light: #cac17a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa841",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 65
  },
  "hsl": {
    "h": 56.182,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71754,
    "c": 0.12396,
    "h": 105.4
  },
  "luminance": 0.37501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA841

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

Preview Lab → · Contrast checker → · Palette generator →

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