#AFB642#AFB642

#AFB642 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 74.9% C 0.138 H 112.6°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#AFB642
RGBrgb(175, 182, 66)
HSLhsl(64, 47%, 49%)
HSVhsv(64, 64%, 71%)
CMYKcmyk(3.8%, 0%, 63.7%, 28.6%)
CIE-LABlab(71.53, -17.57, 56.15)
CIE-LCHlch(71.53, 58.84, 107.38°)
OKLaboklab(74.85% -0.053 0.1275)
OKLCHoklch(74.85% 0.138 112.6)
XYZxyz(35.3915, 42.9640, 11.5817)
Luminance0.4296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB642 #4942B6
analogous
#B68342 #AFB642 #75B642
triadic
#AFB642 #42AFB6 #B642AF
tetradic
#AFB642 #42B683 #4942B6 #B64275
square
#AFB642 #42B683 #4942B6 #B64275
split-complementary
#AFB642 #4275B6 #8342B6
monochromatic
#595C21 #848932 #AFB642 #C4CA6C #D6DA99

Accessibility & contrast

On white

2.19
#AFB642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#AFB642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB642
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB642#FFFFFF#000000##000000
##AFB6421.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE33
Deuteranopia (green-blind)
#C3B14A
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb642;
/* rgb */ color: rgb(175, 182, 66);
/* oklch */ color: oklch(74.9% 0.138 112.6);
Tailwind
colors: {
  custom: {
    50: '#cacb7c',
    500: '#afb642',
    950: '#000000',
  },
}
SCSS
$custom: #afb642;
$custom-light: #cacb7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb642",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 66
  },
  "hsl": {
    "h": 63.621,
    "s": 46.774,
    "l": 48.627
  },
  "oklch": {
    "l": 0.74852,
    "c": 0.13805,
    "h": 112.6
  },
  "luminance": 0.42963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFB642

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

Preview Lab → · Contrast checker → · Palette generator →

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