#AFB841#AFB841

#AFB841 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.3% C 0.141 H 113.4°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#AFB841
RGBrgb(175, 184, 65)
HSLhsl(65, 48%, 49%)
HSVhsv(65, 65%, 72%)
CMYKcmyk(4.9%, 0%, 64.7%, 27.8%)
CIE-LABlab(72.08, -18.64, 57.14)
CIE-LCHlch(72.08, 60.11, 108.07°)
OKLaboklab(75.29% -0.0561 0.1294)
OKLCHoklch(75.29% 0.141 113.4)
XYZxyz(35.7748, 43.7773, 11.5653)
Luminance0.4378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB841 #4A41B8
analogous
#B88641 #AFB841 #74B841
triadic
#AFB841 #41AFB8 #B841AF
tetradic
#AFB841 #41B886 #4A41B8 #B84174
square
#AFB841 #41B886 #4A41B8 #B84174
split-complementary
#AFB841 #4174B8 #8641B8
monochromatic
#595E21 #848B31 #AFB841 #C4CB6B #D6DB99

Accessibility & contrast

On white

2.15
#AFB841 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#AFB841 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB841
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB841#FFFFFF#000000##000000
##AFB8411.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF31
Deuteranopia (green-blind)
#C5B249
Tritanopia (blue-blind)
#BAADA0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb841;
/* rgb */ color: rgb(175, 184, 65);
/* oklch */ color: oklch(75.3% 0.141 113.4);
Tailwind
colors: {
  custom: {
    50: '#cacd7c',
    500: '#afb841',
    950: '#000000',
  },
}
SCSS
$custom: #afb841;
$custom-light: #cacd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb841",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 65
  },
  "hsl": {
    "h": 64.538,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75288,
    "c": 0.14105,
    "h": 113.4
  },
  "luminance": 0.43777
}

Semantic roles & 50–950 ramp

primary
#AFB841
secondary
#928EC7
accent
#50D75B
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB841

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

Preview Lab → · Contrast checker → · Palette generator →

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