#AFA74B#AFA74B

#AFA74B is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.114 H 104.3°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA74B
RGBrgb(175, 167, 75)
HSLhsl(55, 40%, 49%)
HSVhsv(55, 57%, 69%)
CMYKcmyk(0%, 4.6%, 57.1%, 31.4%)
CIE-LABlab(67.47, -9.19, 47.71)
CIE-LCHlch(67.47, 48.58, 100.91°)
OKLaboklab(71.64% -0.0283 0.1107)
OKLCHoklch(71.64% 0.114 104.3)
XYZxyz(32.7690, 37.2605, 12.1211)
Luminance0.3726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA74B #4B53AF
analogous
#AF754B #AFA74B #85AF4B
triadic
#AFA74B #4BAFA7 #A74BAF
tetradic
#AFA74B #4BAF75 #4B53AF #AF4B85
square
#AFA74B #4BAF75 #4B53AF #AF4B85
split-complementary
#AFA74B #4B85AF #754BAF
monochromatic
#595526 #847E39 #AFA74B #C3BD74 #D6D19F

Accessibility & contrast

On white

2.48
#AFA74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA74B
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA74B#FFFFFF#000000##000000
##AFA74B1.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A242
Deuteranopia (green-blind)
#B7A650
Tritanopia (blue-blind)
#BB9D93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa74b;
/* rgb */ color: rgb(175, 167, 75);
/* oklch */ color: oklch(71.6% 0.114 104.3);
Tailwind
colors: {
  custom: {
    50: '#c9c080',
    500: '#afa74b',
    950: '#000000',
  },
}
SCSS
$custom: #afa74b;
$custom-light: #c9c080;
$custom-dark: #000000;
JSON
{
  "hex": "#afa74b",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 75
  },
  "hsl": {
    "h": 55.2,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71641,
    "c": 0.11428,
    "h": 104.3
  },
  "luminance": 0.37259
}

Semantic roles & 50–950 ramp

primary
#AFA74B
secondary
#9397C2
accent
#62D058
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA74B

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

Preview Lab → · Contrast checker → · Palette generator →

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