#AFB346#AFB346

#AFB346 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.132 H 111.2°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#AFB346
RGBrgb(175, 179, 70)
HSLhsl(62, 44%, 49%)
HSVhsv(62, 61%, 70%)
CMYKcmyk(2.2%, 0%, 60.9%, 29.8%)
CIE-LABlab(70.73, -15.78, 53.59)
CIE-LCHlch(70.73, 55.86, 106.41°)
OKLaboklab(74.22% -0.0475 0.1226)
OKLCHoklch(74.22% 0.132 111.2)
XYZxyz(34.9057, 41.7972, 12.0221)
Luminance0.4180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB346 #4A46B3
analogous
#B38146 #AFB346 #79B346
triadic
#AFB346 #46AFB3 #B346AF
tetradic
#AFB346 #46B381 #4A46B3 #B34679
square
#AFB346 #46B381 #4A46B3 #B34679
split-complementary
#AFB346 #4679B3 #8146B3
monochromatic
#595B24 #848735 #AFB346 #C4C76F #D6D89B

Accessibility & contrast

On white

2.24
#AFB346 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#AFB346 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB346
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB346#FFFFFF#000000##000000
##AFB3461.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB39
Deuteranopia (green-blind)
#C1AF4D
Tritanopia (blue-blind)
#BAA99C
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb346;
/* rgb */ color: rgb(175, 179, 70);
/* oklch */ color: oklch(74.2% 0.132 111.2);
Tailwind
colors: {
  custom: {
    50: '#c9c97e',
    500: '#afb346',
    950: '#000000',
  },
}
SCSS
$custom: #afb346;
$custom-light: #c9c97e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb346",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 70
  },
  "hsl": {
    "h": 62.202,
    "s": 43.775,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74223,
    "c": 0.1315,
    "h": 111.2
  },
  "luminance": 0.41796
}

Semantic roles & 50–950 ramp

primary
#AFB346
secondary
#9290C4
accent
#54D459
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB346

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

Preview Lab → · Contrast checker → · Palette generator →

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