#AFA846#AFA846

#AFA846 is a light, moderate yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.120 H 105.2°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#AFA846
RGBrgb(175, 168, 70)
HSLhsl(56, 43%, 48%)
HSVhsv(56, 60%, 69%)
CMYKcmyk(0%, 4%, 60%, 31.4%)
CIE-LABlab(67.70, -10.09, 50.27)
CIE-LCHlch(67.70, 51.28, 101.35°)
OKLaboklab(71.8% -0.0314 0.1156)
OKLCHoklch(71.8% 0.12 105.2)
XYZxyz(32.7884, 37.5625, 11.3163)
Luminance0.3756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA846 #464DAF
analogous
#AF7346 #AFA846 #81AF46
triadic
#AFA846 #46AFA8 #A846AF
tetradic
#AFA846 #46AF73 #464DAF #AF4681
square
#AFA846 #46AF73 #464DAF #AF4681
split-complementary
#AFA846 #4681AF #7346AF
monochromatic
#585423 #837E35 #AFA846 #C5BF6D #D6D299

Accessibility & contrast

On white

2.47
#AFA846 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#AFA846 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA846
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA846#FFFFFF#000000##000000
##AFA8461.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A23B
Deuteranopia (green-blind)
#B8A74B
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa846;
/* rgb */ color: rgb(175, 168, 70);
/* oklch */ color: oklch(71.8% 0.120 105.2);
Tailwind
colors: {
  custom: {
    50: '#c9c17d',
    500: '#afa846',
    950: '#000000',
  },
}
SCSS
$custom: #afa846;
$custom-light: #c9c17d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa846",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 70
  },
  "hsl": {
    "h": 56,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.71804,
    "c": 0.11976,
    "h": 105.2
  },
  "luminance": 0.37561
}

Semantic roles & 50–950 ramp

primary
#AFA846
secondary
#8E92C2
accent
#5ED355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA846

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

Preview Lab → · Contrast checker → · Palette generator →

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