#AFA145#AFA145

#AFA145 is a light, moderate yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.114 H 100.7°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#AFA145
RGBrgb(175, 161, 69)
HSLhsl(52, 43%, 48%)
HSVhsv(52, 61%, 69%)
CMYKcmyk(0%, 8%, 60.6%, 31.4%)
CIE-LABlab(65.78, -6.47, 48.61)
CIE-LCHlch(65.78, 49.03, 97.58°)
OKLaboklab(70.28% -0.0212 0.1119)
OKLCHoklch(70.28% 0.114 100.7)
XYZxyz(31.4994, 35.0346, 10.7322)
Luminance0.3503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA145 #4553AF
analogous
#AF6C45 #AFA145 #88AF45
triadic
#AFA145 #45AFA1 #A145AF
tetradic
#AFA145 #45AF6C #4553AF #AF4588
square
#AFA145 #45AF6C #4553AF #AF4588
split-complementary
#AFA145 #4588AF #6C45AF
monochromatic
#575022 #837934 #AFA145 #C5B96C #D6CE98

Accessibility & contrast

On white

2.62
#AFA145 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#AFA145 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA145
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA145#FFFFFF#000000##000000
##AFA1451.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D3B
Deuteranopia (green-blind)
#B3A24A
Tritanopia (blue-blind)
#BC968D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa145;
/* rgb */ color: rgb(175, 161, 69);
/* oklch */ color: oklch(70.3% 0.114 100.7);
Tailwind
colors: {
  custom: {
    50: '#c9bc7c',
    500: '#afa145',
    950: '#000000',
  },
}
SCSS
$custom: #afa145;
$custom-light: #c9bc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa145",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 69
  },
  "hsl": {
    "h": 52.075,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70275,
    "c": 0.11388,
    "h": 100.7
  },
  "luminance": 0.35033
}

Semantic roles & 50–950 ramp

primary
#AFA145
secondary
#8D94C2
accent
#65D355
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA145

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

Preview Lab → · Contrast checker → · Palette generator →

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