#AFB746#AFB746

#AFB746 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.1% C 0.136 H 113.0°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#AFB746
RGBrgb(175, 183, 70)
HSLhsl(64, 45%, 50%)
HSVhsv(64, 62%, 72%)
CMYKcmyk(4.4%, 0%, 61.7%, 28.2%)
CIE-LABlab(71.84, -17.81, 54.79)
CIE-LCHlch(71.84, 57.61, 108.01°)
OKLaboklab(75.11% -0.0532 0.1252)
OKLCHoklch(75.11% 0.136 113)
XYZxyz(35.7191, 43.4238, 12.2932)
Luminance0.4342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB746 #4E46B7
analogous
#B78746 #AFB746 #76B746
triadic
#AFB746 #46AFB7 #B746AF
tetradic
#AFB746 #46B787 #4E46B7 #B74676
square
#AFB746 #46B787 #4E46B7 #B74676
split-complementary
#AFB746 #4676B7 #8746B7
monochromatic
#5A5E24 #858B35 #AFB746 #C3C971 #D6DA9E

Accessibility & contrast

On white

2.17
#AFB746 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#AFB746 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB746
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB746#FFFFFF#000000##000000
##AFB7461.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF38
Deuteranopia (green-blind)
#C4B14D
Tritanopia (blue-blind)
#BAAD9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb746;
/* rgb */ color: rgb(175, 183, 70);
/* oklch */ color: oklch(75.1% 0.136 113.0);
Tailwind
colors: {
  custom: {
    50: '#c9cc7e',
    500: '#afb746',
    950: '#000000',
  },
}
SCSS
$custom: #afb746;
$custom-light: #c9cc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb746",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 70
  },
  "hsl": {
    "h": 64.248,
    "s": 44.664,
    "l": 49.608
  },
  "oklch": {
    "l": 0.75111,
    "c": 0.136,
    "h": 113
  },
  "luminance": 0.43423
}

Semantic roles & 50–950 ramp

primary
#AFB746
secondary
#9693C6
accent
#53D45D
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB746

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

Preview Lab → · Contrast checker → · Palette generator →

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