#AFB842#AFB842

#AFB842 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.3% C 0.140 H 113.4°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#AFB842
RGBrgb(175, 184, 66)
HSLhsl(65, 47%, 49%)
HSVhsv(65, 64%, 72%)
CMYKcmyk(4.9%, 0%, 64.1%, 27.8%)
CIE-LABlab(72.09, -18.58, 56.74)
CIE-LCHlch(72.09, 59.70, 108.13°)
OKLaboklab(75.3% -0.0558 0.1287)
OKLCHoklch(75.3% 0.14 113.4)
XYZxyz(35.8040, 43.7890, 11.7192)
Luminance0.4379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB842 #4B42B8
analogous
#B88642 #AFB842 #74B842
triadic
#AFB842 #42AFB8 #B842AF
tetradic
#AFB842 #42B886 #4B42B8 #B84274
square
#AFB842 #42B886 #4B42B8 #B84274
split-complementary
#AFB842 #4274B8 #8642B8
monochromatic
#595E22 #848B32 #AFB842 #C3CB6D #D6DB9A

Accessibility & contrast

On white

2.15
#AFB842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#AFB842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB842
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB842#FFFFFF#000000##000000
##AFB8421.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#C5B24A
Tritanopia (blue-blind)
#BAAEA0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb842;
/* rgb */ color: rgb(175, 184, 66);
/* oklch */ color: oklch(75.3% 0.140 113.4);
Tailwind
colors: {
  custom: {
    50: '#cacd7c',
    500: '#afb842',
    950: '#000000',
  },
}
SCSS
$custom: #afb842;
$custom-light: #cacd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb842",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 64.576,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75297,
    "c": 0.14028,
    "h": 113.4
  },
  "luminance": 0.43788
}

Semantic roles & 50–950 ramp

primary
#AFB842
secondary
#938FC7
accent
#51D75B
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB842

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

Preview Lab → · Contrast checker → · Palette generator →

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