#AFA345#AFA345

#AFA345 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.116 H 102.1°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#AFA345
RGBrgb(175, 163, 69)
HSLhsl(53, 43%, 48%)
HSVhsv(53, 61%, 69%)
CMYKcmyk(0%, 6.9%, 60.6%, 31.4%)
CIE-LABlab(66.32, -7.53, 49.21)
CIE-LCHlch(66.32, 49.78, 98.70°)
OKLaboklab(70.71% -0.0242 0.1132)
OKLCHoklch(70.71% 0.116 102.1)
XYZxyz(31.8517, 35.7392, 10.8496)
Luminance0.3574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA345 #4551AF
analogous
#AF6E45 #AFA345 #86AF45
triadic
#AFA345 #45AFA3 #A345AF
tetradic
#AFA345 #45AF6E #4551AF #AF4586
square
#AFA345 #45AF6E #4551AF #AF4586
split-complementary
#AFA345 #4586AF #6E45AF
monochromatic
#575122 #837A34 #AFA345 #C5BB6C #D6CF98

Accessibility & contrast

On white

2.58
#AFA345 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#AFA345 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA345
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA345#FFFFFF#000000##000000
##AFA3451.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E3B
Deuteranopia (green-blind)
#B4A44A
Tritanopia (blue-blind)
#BB988F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa345;
/* rgb */ color: rgb(175, 163, 69);
/* oklch */ color: oklch(70.7% 0.116 102.1);
Tailwind
colors: {
  custom: {
    50: '#c9be7c',
    500: '#afa345',
    950: '#000000',
  },
}
SCSS
$custom: #afa345;
$custom-light: #c9be7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa345",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 69
  },
  "hsl": {
    "h": 53.208,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70707,
    "c": 0.11573,
    "h": 102.1
  },
  "luminance": 0.35738
}

Semantic roles & 50–950 ramp

primary
#AFA345
secondary
#8D93C2
accent
#63D355
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA345

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

Preview Lab → · Contrast checker → · Palette generator →

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