#AFB943#AFB943

#AFB943 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.5% C 0.141 H 113.9°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#AFB943
RGBrgb(175, 185, 67)
HSLhsl(65, 47%, 49%)
HSVhsv(65, 64%, 73%)
CMYKcmyk(5.4%, 0%, 63.8%, 27.5%)
CIE-LABlab(72.37, -19.02, 56.63)
CIE-LCHlch(72.37, 59.73, 108.56°)
OKLaboklab(75.53% -0.0569 0.1286)
OKLCHoklch(75.53% 0.141 113.9)
XYZxyz(36.0422, 44.2178, 11.9453)
Luminance0.4422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB943 #4D43B9
analogous
#B98843 #AFB943 #74B943
triadic
#AFB943 #43AFB9 #B943AF
tetradic
#AFB943 #43B988 #4D43B9 #B94374
square
#AFB943 #43B988 #4D43B9 #B94374
split-complementary
#AFB943 #4374B9 #8843B9
monochromatic
#5A5F22 #858C33 #AFB943 #C3CB6F #D6DB9B

Accessibility & contrast

On white

2.13
#AFB943 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#AFB943 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB943
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB943#FFFFFF#000000##000000
##AFB9431.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B034
Deuteranopia (green-blind)
#C6B34B
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb943;
/* rgb */ color: rgb(175, 185, 67);
/* oklch */ color: oklch(75.5% 0.141 113.9);
Tailwind
colors: {
  custom: {
    50: '#cacd7d',
    500: '#afb943',
    950: '#000000',
  },
}
SCSS
$custom: #afb943;
$custom-light: #cacd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb943",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 67
  },
  "hsl": {
    "h": 65.085,
    "s": 46.825,
    "l": 49.412
  },
  "oklch": {
    "l": 0.75529,
    "c": 0.14065,
    "h": 113.9
  },
  "luminance": 0.44217
}

Semantic roles & 50–950 ramp

primary
#AFB943
secondary
#9591C7
accent
#51D65D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB943

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

Preview Lab → · Contrast checker → · Palette generator →

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