#AFA843#AFA843

#AFA843 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.122 H 105.3°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AFA843
RGBrgb(175, 168, 67)
HSLhsl(56, 45%, 47%)
HSVhsv(56, 62%, 69%)
CMYKcmyk(0%, 4%, 61.7%, 31.4%)
CIE-LABlab(67.67, -10.30, 51.59)
CIE-LCHlch(67.67, 52.61, 101.30°)
OKLaboklab(71.77% -0.0323 0.118)
OKLCHoklch(71.77% 0.122 105.3)
XYZxyz(32.6961, 37.5256, 10.8300)
Luminance0.3752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA843 #434AAF
analogous
#AF7243 #AFA843 #80AF43
triadic
#AFA843 #43AFA8 #A843AF
tetradic
#AFA843 #43AF72 #434AAF #AF4380
square
#AFA843 #43AF72 #434AAF #AF4380
split-complementary
#AFA843 #4380AF #7243AF
monochromatic
#565321 #837E32 #AFA843 #C6C069 #D7D296

Accessibility & contrast

On white

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

On black

8.50
#AFA843 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA843
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA843#FFFFFF#000000##000000
##AFA8431.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A237
Deuteranopia (green-blind)
#B8A749
Tritanopia (blue-blind)
#BB9D93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa843;
/* rgb */ color: rgb(175, 168, 67);
/* oklch */ color: oklch(71.8% 0.122 105.3);
Tailwind
colors: {
  custom: {
    50: '#cac17c',
    500: '#afa843',
    950: '#000000',
  },
}
SCSS
$custom: #afa843;
$custom-light: #cac17c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa843",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 67
  },
  "hsl": {
    "h": 56.111,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71774,
    "c": 0.12231,
    "h": 105.3
  },
  "luminance": 0.37524
}

Semantic roles & 50–950 ramp

primary
#AFA843
secondary
#8B8FC2
accent
#5CD453
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA843

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

Preview Lab → · Contrast checker → · Palette generator →

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