#AFB747#AFB747

#AFB747 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.1% C 0.135 H 113.0°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#AFB747
RGBrgb(175, 183, 71)
HSLhsl(64, 44%, 50%)
HSVhsv(64, 61%, 72%)
CMYKcmyk(4.4%, 0%, 61.2%, 28.2%)
CIE-LABlab(71.85, -17.74, 54.36)
CIE-LCHlch(71.85, 57.19, 108.07°)
OKLaboklab(75.12% -0.0529 0.1244)
OKLCHoklch(75.12% 0.135 113)
XYZxyz(35.7509, 43.4366, 12.4608)
Luminance0.4344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB747 #4F47B7
analogous
#B78747 #AFB747 #77B747
triadic
#AFB747 #47AFB7 #B747AF
tetradic
#AFB747 #47B787 #4F47B7 #B74777
square
#AFB747 #47B787 #4F47B7 #B74777
split-complementary
#AFB747 #4777B7 #8747B7
monochromatic
#5B5F25 #858B36 #AFB747 #C2C973 #D5DA9F

Accessibility & contrast

On white

2.17
#AFB747 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#AFB747 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB747
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB747#FFFFFF#000000##000000
##AFB7471.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF3A
Deuteranopia (green-blind)
#C4B14E
Tritanopia (blue-blind)
#BAAD9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb747;
/* rgb */ color: rgb(175, 183, 71);
/* oklch */ color: oklch(75.1% 0.135 113.0);
Tailwind
colors: {
  custom: {
    50: '#c9cc7f',
    500: '#afb747',
    950: '#000000',
  },
}
SCSS
$custom: #afb747;
$custom-light: #c9cc7f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb747",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 71
  },
  "hsl": {
    "h": 64.286,
    "s": 44.094,
    "l": 49.804
  },
  "oklch": {
    "l": 0.75121,
    "c": 0.13519,
    "h": 113
  },
  "luminance": 0.43436
}

Semantic roles & 50–950 ramp

primary
#AFB747
secondary
#9794C6
accent
#54D45D
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB747

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

Preview Lab → · Contrast checker → · Palette generator →

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