#AFB741#AFB741

#AFB741 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.1% C 0.140 H 113.0°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#AFB741
RGBrgb(175, 183, 65)
HSLhsl(64, 48%, 49%)
HSVhsv(64, 64%, 72%)
CMYKcmyk(4.4%, 0%, 64.5%, 28.2%)
CIE-LABlab(71.80, -18.14, 56.85)
CIE-LCHlch(71.80, 59.68, 107.70°)
OKLaboklab(75.07% -0.0547 0.1288)
OKLCHoklch(75.07% 0.14 113)
XYZxyz(35.5678, 43.3633, 11.4963)
Luminance0.4336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB741 #4941B7
analogous
#B78441 #AFB741 #74B741
triadic
#AFB741 #41AFB7 #B741AF
tetradic
#AFB741 #41B784 #4941B7 #B74174
square
#AFB741 #41B784 #4941B7 #B74174
split-complementary
#AFB741 #4174B7 #8441B7
monochromatic
#595D21 #848A31 #AFB741 #C4CA6B #D6DA98

Accessibility & contrast

On white

2.17
#AFB741 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.67
#AFB741 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB741
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB741#FFFFFF#000000##000000
##AFB7411.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF31
Deuteranopia (green-blind)
#C4B149
Tritanopia (blue-blind)
#BAAC9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb741;
/* rgb */ color: rgb(175, 183, 65);
/* oklch */ color: oklch(75.1% 0.140 113.0);
Tailwind
colors: {
  custom: {
    50: '#cacc7c',
    500: '#afb741',
    950: '#000000',
  },
}
SCSS
$custom: #afb741;
$custom-light: #cacc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb741",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 65
  },
  "hsl": {
    "h": 64.068,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.75065,
    "c": 0.13992,
    "h": 113
  },
  "luminance": 0.43363
}

Semantic roles & 50–950 ramp

primary
#AFB741
secondary
#918EC6
accent
#51D75A
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB741

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

Preview Lab → · Contrast checker → · Palette generator →

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