#AFA148#AFA148

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

Color values

HEX#AFA148
RGBrgb(175, 161, 72)
HSLhsl(52, 42%, 48%)
HSVhsv(52, 59%, 69%)
CMYKcmyk(0%, 8%, 58.9%, 31.4%)
CIE-LABlab(65.81, -6.25, 47.24)
CIE-LCHlch(65.81, 47.65, 97.53°)
OKLaboklab(70.31% -0.0202 0.1094)
OKLCHoklch(70.31% 0.111 100.5)
XYZxyz(31.5949, 35.0728, 11.2351)
Luminance0.3507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA148 #4856AF
analogous
#AF6D48 #AFA148 #89AF48
triadic
#AFA148 #48AFA1 #A148AF
tetradic
#AFA148 #48AF6D #4856AF #AF4889
square
#AFA148 #48AF6D #4856AF #AF4889
split-complementary
#AFA148 #4889AF #6D48AF
monochromatic
#585124 #847936 #AFA148 #C4B970 #D6CE9B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA148#FFFFFF#000000##000000
##AFA1481.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)
#AF9D3F
Deuteranopia (green-blind)
#B3A24C
Tritanopia (blue-blind)
#BB978D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa148;
/* rgb */ color: rgb(175, 161, 72);
/* oklch */ color: oklch(70.3% 0.111 100.5);
Tailwind
colors: {
  custom: {
    50: '#c9bc7e',
    500: '#afa148',
    950: '#000000',
  },
}
SCSS
$custom: #afa148;
$custom-light: #c9bc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa148",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 72
  },
  "hsl": {
    "h": 51.845,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.70308,
    "c": 0.1112,
    "h": 100.5
  },
  "luminance": 0.35072
}

Semantic roles & 50–950 ramp

primary
#AFA148
secondary
#9097C2
accent
#67D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA148

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

Preview Lab → · Contrast checker → · Palette generator →

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