#AFB342#AFB342

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

Color values

HEX#AFB342
RGBrgb(175, 179, 66)
HSLhsl(62, 46%, 48%)
HSVhsv(62, 63%, 70%)
CMYKcmyk(2.2%, 0%, 63.1%, 29.8%)
CIE-LABlab(70.70, -16.05, 55.27)
CIE-LCHlch(70.70, 57.56, 106.19°)
OKLaboklab(74.19% -0.0487 0.1256)
OKLCHoklch(74.19% 0.135 111.2)
XYZxyz(34.7837, 41.7483, 11.3791)
Luminance0.4175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB342 #4642B3
analogous
#B37E42 #AFB342 #76B342
triadic
#AFB342 #42AFB3 #B342AF
tetradic
#AFB342 #42B37E #4642B3 #B34276
square
#AFB342 #42B37E #4642B3 #B34276
split-complementary
#AFB342 #4276B3 #7E42B3
monochromatic
#585A21 #838632 #AFB342 #C5C86A #D6D997

Accessibility & contrast

On white

2.25
#AFB342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#AFB342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB342
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB342#FFFFFF#000000##000000
##AFB3421.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB34
Deuteranopia (green-blind)
#C1AE49
Tritanopia (blue-blind)
#BAA89C
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb342;
/* rgb */ color: rgb(175, 179, 66);
/* oklch */ color: oklch(74.2% 0.135 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac97c',
    500: '#afb342',
    950: '#000000',
  },
}
SCSS
$custom: #afb342;
$custom-light: #cac97c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb342",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 62.124,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.74185,
    "c": 0.13472,
    "h": 111.2
  },
  "luminance": 0.41748
}

Semantic roles & 50–950 ramp

primary
#AFB342
secondary
#8E8CC4
accent
#52D657
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB342

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

Preview Lab → · Contrast checker → · Palette generator →

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