#AFB945#AFB945

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

Color values

HEX#AFB945
RGBrgb(175, 185, 69)
HSLhsl(65, 46%, 50%)
HSVhsv(65, 63%, 73%)
CMYKcmyk(5.4%, 0%, 62.7%, 27.5%)
CIE-LABlab(72.39, -18.88, 55.80)
CIE-LCHlch(72.39, 58.91, 108.70°)
OKLaboklab(75.55% -0.0564 0.1272)
OKLCHoklch(75.55% 0.139 113.9)
XYZxyz(36.1032, 44.2422, 12.2668)
Luminance0.4424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB945 #4F45B9
analogous
#B98945 #AFB945 #75B945
triadic
#AFB945 #45AFB9 #B945AF
tetradic
#AFB945 #45B989 #4F45B9 #B94575
square
#AFB945 #45B989 #4F45B9 #B94575
split-complementary
#AFB945 #4575B9 #8945B9
monochromatic
#5B6024 #858C34 #AFB945 #C2CA71 #D5DB9E

Accessibility & contrast

On white

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

On black

9.85
#AFB945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB945
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB945#FFFFFF#000000##000000
##AFB9451.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb945;
/* rgb */ color: rgb(175, 185, 69);
/* oklch */ color: oklch(75.5% 0.139 113.9);
Tailwind
colors: {
  custom: {
    50: '#cacd7e',
    500: '#afb945',
    950: '#000000',
  },
}
SCSS
$custom: #afb945;
$custom-light: #cacd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb945",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 65.172,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.75547,
    "c": 0.13909,
    "h": 113.9
  },
  "luminance": 0.44242
}

Semantic roles & 50–950 ramp

primary
#AFB945
secondary
#9793C7
accent
#52D55E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB945

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

Preview Lab → · Contrast checker → · Palette generator →

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