#AFA943#AFA943

#AFA943 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.0% C 0.123 H 105.9°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AFA943
RGBrgb(175, 169, 67)
HSLhsl(57, 45%, 47%)
HSVhsv(57, 62%, 69%)
CMYKcmyk(0%, 3.4%, 61.7%, 31.4%)
CIE-LABlab(67.94, -10.83, 51.89)
CIE-LCHlch(67.94, 53.01, 101.79°)
OKLaboklab(71.99% -0.0338 0.1186)
OKLCHoklch(71.99% 0.123 105.9)
XYZxyz(32.8814, 37.8962, 10.8917)
Luminance0.3790 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA943 #4349AF
analogous
#AF7343 #AFA943 #7FAF43
triadic
#AFA943 #43AFA9 #A943AF
tetradic
#AFA943 #43AF73 #4349AF #AF437F
square
#AFA943 #43AF73 #4349AF #AF437F
split-complementary
#AFA943 #437FAF #7343AF
monochromatic
#565421 #837E32 #AFA943 #C6C169 #D7D396

Accessibility & contrast

On white

2.45
#AFA943 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#AFA943 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA943
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA943#FFFFFF#000000##000000
##AFA9431.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A337
Deuteranopia (green-blind)
#B9A849
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa943;
/* rgb */ color: rgb(175, 169, 67);
/* oklch */ color: oklch(72.0% 0.123 105.9);
Tailwind
colors: {
  custom: {
    50: '#cac27c',
    500: '#afa943',
    950: '#000000',
  },
}
SCSS
$custom: #afa943;
$custom-light: #cac27c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa943",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 67
  },
  "hsl": {
    "h": 56.667,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71992,
    "c": 0.12332,
    "h": 105.9
  },
  "luminance": 0.37895
}

Semantic roles & 50–950 ramp

primary
#AFA943
secondary
#8B8EC2
accent
#5BD453
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA943

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

Preview Lab → · Contrast checker → · Palette generator →

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