#AFA740#AFA740

#AFA740 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.124 H 104.9°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA740
RGBrgb(175, 167, 64)
HSLhsl(56, 46%, 47%)
HSVhsv(56, 63%, 69%)
CMYKcmyk(0%, 4.6%, 63.4%, 31.4%)
CIE-LABlab(67.37, -9.98, 52.59)
CIE-LCHlch(67.37, 53.53, 100.75°)
OKLaboklab(71.53% -0.0318 0.1196)
OKLCHoklch(71.53% 0.124 104.9)
XYZxyz(32.4245, 37.1227, 10.3069)
Luminance0.3712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA740 #4048AF
analogous
#AF7040 #AFA740 #80AF40
triadic
#AFA740 #40AFA7 #A740AF
tetradic
#AFA740 #40AF70 #4048AF #AF4080
square
#AFA740 #40AF70 #4048AF #AF4080
split-complementary
#AFA740 #4080AF #7040AF
monochromatic
#55511F #827C30 #AFA740 #C7C065 #D7D292

Accessibility & contrast

On white

2.49
#AFA740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#AFA740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA740
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA740#FFFFFF#000000##000000
##AFA7401.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A133
Deuteranopia (green-blind)
#B8A646
Tritanopia (blue-blind)
#BB9C91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa740;
/* rgb */ color: rgb(175, 167, 64);
/* oklch */ color: oklch(71.5% 0.124 104.9);
Tailwind
colors: {
  custom: {
    50: '#cac07a',
    500: '#afa740',
    950: '#000000',
  },
}
SCSS
$custom: #afa740;
$custom-light: #cac07a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa740",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 64
  },
  "hsl": {
    "h": 55.676,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71526,
    "c": 0.12379,
    "h": 104.9
  },
  "luminance": 0.37122
}

Semantic roles & 50–950 ramp

primary
#AFA740
secondary
#888CC3
accent
#5BD652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA740

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

Preview Lab → · Contrast checker → · Palette generator →

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