#AFB045#AFB045

#AFB045 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.6% C 0.129 H 109.7°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#AFB045
RGBrgb(175, 176, 69)
HSLhsl(61, 44%, 48%)
HSVhsv(61, 61%, 69%)
CMYKcmyk(0.6%, 0%, 60.8%, 31%)
CIE-LABlab(69.89, -14.31, 53.12)
CIE-LCHlch(69.89, 55.01, 105.08°)
OKLaboklab(73.55% -0.0435 0.1215)
OKLCHoklch(73.55% 0.129 109.7)
XYZxyz(34.2797, 40.5952, 11.6590)
Luminance0.4059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB045 #4645B0
analogous
#B07B45 #AFB045 #79B045
triadic
#AFB045 #45AFB0 #B045AF
tetradic
#AFB045 #45B07B #4645B0 #B04579
square
#AFB045 #45B07B #4645B0 #B04579
split-complementary
#AFB045 #4579B0 #7B45B0
monochromatic
#585823 #838434 #AFB045 #C5C66D #D6D799

Accessibility & contrast

On white

2.30
#AFB045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#AFB045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB045
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB045#FFFFFF#000000##000000
##AFB0451.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA938
Deuteranopia (green-blind)
#BEAC4B
Tritanopia (blue-blind)
#BBA699
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb045;
/* rgb */ color: rgb(175, 176, 69);
/* oklch */ color: oklch(73.6% 0.129 109.7);
Tailwind
colors: {
  custom: {
    50: '#c9c77d',
    500: '#afb045',
    950: '#000000',
  },
}
SCSS
$custom: #afb045;
$custom-light: #c9c77d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb045",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 69
  },
  "hsl": {
    "h": 60.561,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.7355,
    "c": 0.12903,
    "h": 109.7
  },
  "luminance": 0.40594
}

Semantic roles & 50–950 ramp

primary
#AFB045
secondary
#8E8EC3
accent
#54D356
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB045

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

Preview Lab → · Contrast checker → · Palette generator →

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