#AFA240#AFA240

#AFA240 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.119 H 101.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AFA240
RGBrgb(175, 162, 64)
HSLhsl(53, 46%, 47%)
HSVhsv(53, 63%, 69%)
CMYKcmyk(0%, 7.4%, 63.4%, 31.4%)
CIE-LABlab(66.00, -7.35, 51.12)
CIE-LCHlch(66.00, 51.65, 98.18°)
OKLaboklab(70.44% -0.0243 0.1165)
OKLCHoklch(70.44% 0.119 101.8)
XYZxyz(31.5262, 35.3261, 10.0075)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA240 #404DAF
analogous
#AF6B40 #AFA240 #85AF40
triadic
#AFA240 #40AFA2 #A240AF
tetradic
#AFA240 #40AF6B #404DAF #AF4085
square
#AFA240 #40AF6B #404DAF #AF4085
split-complementary
#AFA240 #4085AF #6B40AF
monochromatic
#554F1F #827930 #AFA240 #C7BB65 #D7CF92

Accessibility & contrast

On white

2.60
#AFA240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AFA240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA240
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA240#FFFFFF#000000##000000
##AFA2401.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#B4A345
Tritanopia (blue-blind)
#BC978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa240;
/* rgb */ color: rgb(175, 162, 64);
/* oklch */ color: oklch(70.4% 0.119 101.8);
Tailwind
colors: {
  custom: {
    50: '#cabd79',
    500: '#afa240',
    950: '#000000',
  },
}
SCSS
$custom: #afa240;
$custom-light: #cabd79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa240",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 52.973,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.7044,
    "c": 0.11903,
    "h": 101.8
  },
  "luminance": 0.35325
}

Semantic roles & 50–950 ramp

primary
#AFA240
secondary
#888FC3
accent
#61D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA240

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

Preview Lab → · Contrast checker → · Palette generator →

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